Streaming multiprocessors, Blocks and Threads (CUDA)

后端 未结 4 1992
走了就别回头了
走了就别回头了 2020-12-04 06:10

What is the relationship between a CUDA core, a streaming multiprocessor and the CUDA model of blocks and threads?

What gets mapped to what and what is parallelized

4条回答
  •  有刺的猬
    2020-12-04 06:41

    There are multiple streaming multiprocessor on one device.
    A SM may contain multiple blocks. Each block may contain several threads.
    A SM have multiple CUDA cores(as a developer, you should not care about this because it is abstracted by warp), which will work on thread. SM always working on warp of threads(always 32). A warp will only working on thread from same block.
    SM and block both have limits on number of thread, number of register and shared memory.

提交回复
热议问题