首页 > 其他 > 详细

Cannot run CUDA kernel : too many resources requested for launch

时间:2020-07-16 23:13:38      阅读:80      评论:0      收藏:0      [点我收藏+]
MAX_REGISTERS_PRE_BLOCK(或者是MAX_REGISTERS_PRE_MULTIPROCESSOR?),假设为65535。那么,如果调用核函数时,blocksize为(x,y,z),每个线程调用的寄存器个数为r,则x*y*z*r应该小于65535。
 
From Stack Overflow :

"Too Many Resources Requested for Launch - This error means that the number of registers available on the multiprocessor is being exceeded. Reduce the number of threads per block to solve the problem."

Basically I used to be able to have a given number of threads per block, (8x8x16=1024 for a 3D Kernel). But if you nest your kernel calls, you further reduce the number of available registers.

Cannot run CUDA kernel : too many resources requested for launch

原文:https://www.cnblogs.com/bowen231/p/13325078.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!