查看显卡信息

/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?
 
Posted 07/29/2013 12:48 AM 

相关文章:

  • 2022-12-23
  • 2021-06-16
  • 2021-06-28
  • 2022-01-31
  • 2022-12-23
  • 2022-03-06
  • 2021-06-20
  • 2022-12-23
猜你喜欢
  • 2021-06-18
  • 2021-07-16
  • 2021-04-11
  • 2021-09-18
  • 2022-12-23
相关资源
相似解决方案