Reputation: 91
I get an thrust::system::system_error invalid device function
while trying to access a device vector with thrust::device_vector< int > labels_d(width*height);
In my CMakeFile I've written
SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_20,code=compute_20)
And also tried different settings there.
So I guess it has something to do with my GPU (a Quadro FX 580) and CUDA maybe a pointer to my device is wrong or something...
Does anybody have a clue on what to change to make it work?
Upvotes: 0
Views: 2783
Reputation: 91
I've managed to find out that my GPU simply is too old for arch=compute_20
, and so I have to use arch=compute_11
.
Upvotes: 2