Compiling CUDA code

What are the commands when compiing a cuda program to just compile to the cuda code?

I do not want to compile to an executable.

Thanks in advance.

THX 1138

Do you want to compile CUDA Fortran or CUDA C code? Are you targeting the GPU or CPU?

For CUDA Fortran, and the flag “-Mcuda” for the GPU, “-Mcuda=emu” for the CPU emulation mode.

For CUDA C x86, use the PGI C++ compiler, pgcpp, with the flag “-Mcuda”.

For CUDA C targeting a GPU, you need to use NVIDIA’s nvcc compiler.

  • Mat