查看显卡信息
/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?
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?