Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:01:09+00:00 2026-06-18T16:01:09+00:00

In a 2-d or 3-d CUDA block, how are threads grouped into warps? My

  • 0

In a 2-d or 3-d CUDA block, how are threads grouped into warps? My assumption is that they iterate first by x, then y, then z. For example, in threads with <z,y,x>, <0,0,[0-31]> is a warp, and so is <0,1,[0-31]>, etc. Is this correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:01:10+00:00Added an answer on June 18, 2026 at 4:01 pm

    Yes that is correct. Threads are grouped first by X, then Y, then Z (thread coordinates) when creating warps (groups of 32 threads that execute together). This has implications for good coalescing: you will want to arrange your usage of thread coordinates in matrix subscripts so that warp-adjacent threads (i.e. in X coordinates, typically) will access adjacent elements in the matrix (by using threadIdx.x or a derivative in the most rapidly varying matrix dimension. We typically want data[z][y][x], not data[x][y][z]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The CUDA Wikipedia page lists the Maximum number of threads per block as 1024
It's the first parallel code of cuda by example . Can any one describe
I am designing a CUDA kernel that will be launched with 16 threads per
I am new to CUDA programming, and I am working on a problem that
I have a CUDA kernel that calls out to a series of device functions.
I understand that in CUDA's memory hierachy, we have things like shared memory, texture
I figured out that CUDA does not work in 64bit mode on my mac
I ran some CUDA code that updated an array of floats. I have a
I have three questions to ask If I create only one block of threads
I am currently porting a CUDA code that finds shortest paths from each node

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.