hzhan0607 / cusp-library

Automatically exported from code.google.com/p/cusp-library
Apache License 2.0
0 stars 0 forks source link

Thrust version #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I get the following issues when I try to compile 

1. compile the version.cu returns wrong thrust version: v1.1 instead of v1.2. I 
downloaded thrust from  http://thrust.googlecode.com/files/thrust-v1.2.zip

2. compile of any example results in the following error output which I think 
is related to the wrong thrust version:

:nvcc cg.cu -o cg -I /home/fdelpin/GPU/
/usr/local/cuda/bin/../include/thrust/sorting/detail/device/cuda/stable_merge_so
rt.inl(94): error: expression must have a constant value

/home/fdelpin/GPU/thrust/iterator/permutation_iterator.h(152): error: namespace 
"thrust::detail" has no member "enable_if_convertible"

/home/fdelpin/GPU/thrust/iterator/permutation_iterator.h(152): error: expected 
a ")"

/home/fdelpin/GPU/thrust/iterator/detail/permutation_iterator.inl(31): error: 
namespace "thrust::detail::device" has no member "dereference_result"

/home/fdelpin/GPU/thrust/iterator/detail/permutation_iterator.inl(31): error: 
expected an identifier

/home/fdelpin/GPU/thrust/iterator/detail/permutation_iterator.inl(46): error: a 
template argument list is not allowed in a declaration of a primary template

/home/fdelpin/GPU/thrust/iterator/detail/permutation_iterator.inl(54): error: 
dereference_result is not a template

/home/fdelpin/GPU/thrust/iterator/detail/permutation_iterator.inl(63): error: 
dereference_result is not a template

8 errors detected in the compilation of 
"/tmp/tmpxft_000011ea_00000000-4_cg.cpp1.ii".

I'm using CUSP V0.1 on linux SuSe 11

Thanks!

Original issue reported on code.google.com by fdel...@gmail.com on 14 Jun 2010 at 9:32

GoogleCodeExporter commented 8 years ago
Problem solved thanks to Nathan. Just remove "thrust" from 
/usr/local/cuda/include since this takes precedence over user defined paths 
like -I /home/fdelpin/GPU/

Original comment by fdel...@gmail.com on 15 Jun 2010 at 9:40

GoogleCodeExporter commented 8 years ago

Original comment by wnbell on 7 Jul 2010 at 7:45