Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 CUDA,可以使用编译选项强制编译器每个线程不使用超过 N 个寄存器:
--maxrregcount=N
OpenCL可以吗?如何?
我不确定这是否完全回答了你的问题,但它是我认为最接近的。
'可以通过为 clBuildProgram() 提供“-cl-nv-maxrregcount=n”选项来设置每个线程的最大寄存器使用量。'
来自: http: //openvidia.sourceforge.net/index.php/OpenCL