pranavsureshpn / gpusphsim

Automatically exported from code.google.com/p/gpusphsim
0 stars 0 forks source link

Compilation using Eclipse CDT and Linux CUDA #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi there,

I've downloaded the code and now I'm trying to convert the VC++ project to 
Eclipse CDT and Linux CUDA. As I don't have access to VC++, is there a way to 
generate a makefile or a cmake, so I can compile the libs on Linux? Can you 
provide any pointers on that?

Thanks you very much!

Original issue reported on code.google.com by ispma...@gmail.com on 7 Sep 2010 at 11:03

GoogleCodeExporter commented 8 years ago
Sorry, I didn't change the status, this is not a Defect ;-)

Original comment by ispma...@gmail.com on 7 Sep 2010 at 11:04

GoogleCodeExporter commented 8 years ago
Due to a lack of experience with linux development I did not take the time to 
actually setup and test for linux. For the same reason I am afraid I can't 
provide much help in the specifics of creating a makefile/configuring cmake, 
however I tried to make the code as platform-agnostic as possible, so it should 
be quite possible.
One item of note is how I structured the sph library, since CUDA does not 
support linking of device code I had to basically "include" files into a few 
core "compile" objects. Figuring out how this all works is made much easier if 
you take a look at how the Visual Studio project is setup (notice in the CUDA 
property panel how some files are not compiled, these files have a red icon in 
the solution explorer)

Original comment by oystein....@gmail.com on 9 Sep 2010 at 7:44