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