 <p>My answer <a href="http://stackoverflow.com/questions/9363827/building-gpl-c-program-with-cuda-module">to this recent question</a> likely describes what you need.</p> <p>A couple of additional notes:</p> <ol> <li>You don't need to compile your .cu to a .cubin or .ptx file. You need to compile it to a .o object file and then link it with the .o object files from your .cpp files compiled wiht g++.</li> <li>In addition to putting your cuda kernel code in cudaFunc.cu, you also need to put a C or C++ wrapper function in that file that launches the kernel (unless you are using the CUDA driver API, which is unlikely and not recommended). Also add a header file with the prototype of this wrapper function so that you can include it in your C++ code which needs to call the CUDA code. Then you link the files together using your standard g++ link line.</li> </ol> <p>I'm starting to repeat my <a href="http://stackoverflow.com/questions/9363827/building-gpl-c-program-with-cuda-module">other answer</a>, so I recommend just reading it. :)</p>