How do I choose grid and block dimensions for CUDA kernels?

后端 未结 3 2102
半阙折子戏
半阙折子戏 2020-11-22 08:21

This is a question about how to determine the CUDA grid, block and thread sizes. This is an additional question to the one posted here.

Following this link, the answ

3条回答
  •  暖寄归人
    2020-11-22 08:50

    The blocksize is usually selected to maximize the "occupancy". Search on CUDA Occupancy for more information. In particular, see the CUDA Occupancy Calculator spreadsheet.

提交回复
热议问题