【发布时间】:2016-05-20 19:57:20
【问题描述】:
我在尝试使用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 可能指向我的设备的指针是错误的或什么的......
有没有人知道要改变什么才能让它工作?
【问题讨论】: