Solver cg example fails to compile

91 views
Skip to first unread message

Felipe bivort haiek

unread,
Nov 12, 2017, 1:22:19 AM11/12/17
to cusp-users
Hello I am trying cusp in linux. I ran the example version.cu and it compiled and ran perfectly. But when I tried the example in the cg.cu provided with CUSP it returns

nvcc -O2 cg.cu -o cg/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_00006bc6_00000000-8_cg.cpp1.ii".

Reply all
Reply to author
Forward
0 new messages