CUDA 无效设备函数
CUDA invalid device function
我在尝试使用 thrust::device_vector< int > labels_d(width*height);
访问设备向量时收到 thrust::system::system_error invalid device function
在我的 CMakeFile 中我写了
SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_20,code=compute_20)
并在那里尝试了不同的设置。
所以我想这与我的 GPU(Quadro FX 580)和 CUDA 有关,可能指向我的设备的指针有误或其他原因...
有人知道要改变什么才能让它发挥作用吗?
我发现我的 GPU 对于 arch=compute_20
来说太旧了,所以我不得不使用 arch=compute_11
。
我在尝试使用 thrust::device_vector< int > labels_d(width*height);
thrust::system::system_error invalid device function
在我的 CMakeFile 中我写了
SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_20,code=compute_20)
并在那里尝试了不同的设置。
所以我想这与我的 GPU(Quadro FX 580)和 CUDA 有关,可能指向我的设备的指针有误或其他原因...
有人知道要改变什么才能让它发挥作用吗?
我发现我的 GPU 对于 arch=compute_20
来说太旧了,所以我不得不使用 arch=compute_11
。