Check failed: error == cudaSuccess (7 vs. 0) too many resources requested for launch


查看显卡信息

/usr/local/cuda-8.0/samples/bin/x86_64/linux/release$  ./deviceQuery 

 

 Total number of registers available per block: 65536

 

查看caffe源码中使用寄存器的数量,在Makefile.config中添加

# nvcc param
NVCCFLAGS :=  -Xptxas -v

 

 

Check failed: error == cudaSuccess (7 vs. 0) too many resources requested for launch

https://devtalk.nvidia.com/default/topic/569648/cudaerrorlaunchoutofresources-aka-quot-too-many-resources-requested-for-launch-quot-/?offset=1

From compilation:
ptxas info : Used 49 registers, 64 bytes cmem[0], 8 bytes cmem[14]

From deviceQuery:
Total number of registers available per block: 32768

49 x 1024 = 50176 > 32768 then goto resize block :-)

Thank you very much njuffa!
BTW which manual describes the compiler options?
 
#3
Posted 07/29/2013 12:48 AM 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM