I was developing my code in Visual Studio but now i want to run the same code in Linux environment and i am stuck with the compilation problem.
I tried to refer to the web and make a make file that compiles my code but i couldn’t do it.
Basically i have following files:-
- kernel.cu // this file contains all the kernel functions.
- warp.cpp // this file contains the wrapper function(global) that calls the kernel functions in kernel.cu files. kernel.cu is included in this file.
- main.cpp // this file contains opengl methods and calls the methods in warp.cpp using common header file ( global_methods.h)
- global_methods.h // common header containing extern functions, that is included in warp.cpp and main.cpp
I have included cuda.h in warp.cpp.
Can anyone let me know how to compile files under this configuration?
I have tried compiling using following links:- but it doesnt seem to work
I would be very grateful if anyone can show me the right path or give me a makefile.