我试图使用cuSP(从Matrix Market文件加载)运行简单的测试,但这是我得到的
/usr/include/thrust/system/cuda/detail/execute_on_stream.h(45): error: namespace "thrust::system::cuda::detail" has no member class "execution_policy"
/usr/include/thrust/system/cuda/detail/execute_on_stream.h(45): error: not a class or struct name
/usr/include/thrust/system/cuda/detail/execute_on_stream.h(45): error: class or struct definition is missing
/usr/include/thrust/system/cuda/detail/execute_on_stream.h(91): error: incomplete type is not allowed
/usr/include/thrust/system/cuda/detail/execute_on_stream.h(98): error: "super_t" is not a nonstatic data member or base class of class "thrust::system::cuda::detail::execute_on_stream"
5 errors detected in the compilation of "/tmp/tmpxft_00003c21_00000000-8_test.cpp1.ii".
最小示例:
#include <cusp/io/matrix_market.h>
int main(int argc, char *argv[])
{
return 0;
}
编译:
NVCC= /usr/local/cuda-9.1/bin/nvcc test.cu -I/usr/local/cuda-9.1/include/cusplibrary-0.5.0 -L/usr/local/cuda/lib64 -lcudart -lcuda
推力1.9版,CUDA 9.1版,CUSP 0.5版(使用0.4测试,存在相同问题) cuSP的其他部分(以及我所能说的最大推力)正常工作。有什么办法可以解决这个问题(或者我在做什么错)?还是至少有一种简单的方法可以从cuSP中的预加载密集矩阵加载矩阵作为解决方法?
编辑:其他标头(例如cusp / csr_matrix.h)似乎也引起相同的错误。