Git Product home page Git Product logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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

  • Changed state: Accepted
  • Added labels: Milestone-Release0.2

from cusp-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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

from cusp-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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 [email protected] on 6 Oct 2010 at 7:59

from cusp-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
r80c0df6fbb adds the missing arch files

Original comment by wnbell on 17 Oct 2010 at 9:06

  • Changed state: Fixed

from cusp-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.