std::bad_alloc: no CUDA-capable device is detected
在ubuntu上运行cuda程序的时候, 用cuda demo测试的时候都是好的,但是,当我定义了一个vector,
thrust::device_vector<...> list; list.push_back(...);
然后得到了下面的错误
terminate called after throwing an instance of 'thrust::system::detail::bad_alloc' what(): std::bad_alloc: no CUDA-capable device is detected
大家有什么建议吗?谢谢