简体   繁体   English

每个网格的最大块数:CUDA

[英]Maximum blocks per grid:CUDA

What is the maximum number of blocks in a grid that can created per kernel launch? 每个内核启动可以创建的网格中的最大块数是多少? I am slightly confused here since 从那以后我有点困惑

Now the compute capability table here says that there can be 65535 blocks per grid dimemsion in CUDA compute capability 2.0. 现在, 这里的计算能力表表明,在CUDA计算能力2.0中,每个网格可以有65535个块。

Does that mean the total number of blocks = 65535*65535? 这是否意味着总块数= 65535 * 65535?

Or does it mean that you can rearrange at most 65535 into a 1d grid of 65536 blocks or 2d grid of sqrt(65535) * sqrt(65535) ? 或者它是否意味着您可以将最多65535重新排列为65536块的1d网格或sqrt(65535)* sqrt(65535)的2d网格?

Thank you. 谢谢。

65535 per dimension of the grid. 每个网格尺寸65535。 On compute 1.x cards, 1D and 2D grids are supported. 在计算1.x卡上,支持1D和2D网格。 On compute 2.x cards, 3D grids are also supported, so 65535, 65535 x 65535, and 65535 x 65535 x 65535 are the limits for Fermi (compute 2.x) cards. 在计算2.x卡上,还支持3D网格,因此65535,65535 x 65535和65535 x 65535 x 65535是Fermi(计算2.x)卡的限制。

我认为每格为65535 ..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM