how to import libraries in CUDA

I’m trying to use eigen library and cgal library for my project but i’m not sure how. How do i import for instance, eigen library or CGAL library, to my cuda code?

Also, if i have classes in my host, are there ways i can use the class type in host in my global/device functions in GPU? (other than copying everything to device)

cross posting:

http://stackoverflow.com/questions/31755493/how-to-import-libraries-in-cuda

Any more update on this issue? I am facing a similar situation.

I hope I don’t butcher this but basically, your project needs to know the location of the headers of your library and the location of the object files to link against. How to go about this is completely dependent on how you’re installing and building the library (assuming it’s not all headers and requires compilation).