PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Compiling CUDA code

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
THX 1138



Joined: 30 Jun 2011
Posts: 103

PostPosted: Wed Feb 20, 2013 2:30 pm    Post subject: Compiling CUDA code Reply with quote

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
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6206
Location: The Portland Group Inc.

PostPosted: Wed Feb 20, 2013 4:12 pm    Post subject: Reply with quote

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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group