Closed GoogleCodeExporter closed 8 years ago
Hi Matt,
I've never seen this sort of error before. Could it be that you're using
Thrust within some extern "C" {} block? The lines of code referenced by the
compiler errors look pretty innocuous:
http://code.google.com/p/thrust/source/browse/thrust/detail/device/cuda/detail/b
40c/vector_types.h#37
Is there a smaller, self-contained example that reproduces the error?
Original comment by wnbell
on 4 Oct 2010 at 9:15
I think I found the culprit. The #define of VecType in one of the PETSc
headers [1] conflicts with the one in Thrust's radix sort.
Is it possible to #undef VecType at the end of this header? If not, I suppose
we could rename the one in Thrust. FWIW adding #undef VecType here [2] seems to
work.
[1]
http://petsc.cs.iit.edu/petsc/petsc-dev/file/e8bf41a37f92/include/petscvec.h#l98
[2]
http://petsc.cs.iit.edu/petsc/petsc-dev/file/e8bf41a37f92/src/mat/impls/aij/seq/
seqcuda/aijcuda.cu#l16
Original comment by wnbell
on 6 Oct 2010 at 5:16
Okay, that takes care of that problem, which exposes another one for me. I just
copied over the arch.h/.inl from thrust/experimental to cusp/detail/device,
which now seems to be blowing up on me. What should I be using for these files?
Thanks,
Matt
Original comment by knep...@gmail.com
on 6 Oct 2010 at 7:59
r80c0df6fbb adds the missing arch files
Original comment by wnbell
on 17 Oct 2010 at 9:06
Original issue reported on code.google.com by
knep...@gmail.com
on 4 Oct 2010 at 8:27Attachments: