我尝试在集群上编译 CUDA 设备查询包,但在位置/NVIDIA GPU 计算 SDK/C/src/deviceQuery 执行 make 时,出现以下错误
deviceQuery.cpp: In function 'int main(int, char**)':
deviceQuery.cpp:119: error: 'struct cudaDeviceProp' has no member named 'maxThreadsPerMultiProcessor'
make: *** [obj/x86_64/release/deviceQuery.cpp.o] Error 1
有人可以帮我解决这个错误吗?
谢谢。
最佳答案
maxThreadsPerMultiProcessor
已添加到 CUDA 4.0 中的 struct cudaDeviceProp
中。您的一台机器必须有较旧的 CUDA 版本。
关于CUDA cudaDeviceProp 构建 deviceQuery 示例时没有成员错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12808755/