PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

how can I compile test.cu file?

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
bilel



Joined: 25 Mar 2011
Posts: 3

PostPosted: Tue Sep 20, 2011 7:06 am    Post subject: how can I compile test.cu file? Reply with quote

Hello,
I think that this is a basic question but i did not find an answer:
did pgcc know *.cu file ? option to do it?
if not how to do to compile native CUDA code?
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Sep 20, 2011 9:33 am    Post subject: Reply with quote

Hi bilel,

The you need to use C++ dirver, pgcpp (or pgCC), to compile CUDA X86 files. Add the flag "-Mcuda" if the file does not use the ".cu" file extension.

Hope this helps,
Mat
Back to top
View user's profile
bilel



Joined: 25 Mar 2011
Posts: 3

PostPosted: Wed Sep 21, 2011 4:48 am    Post subject: I want a Cuda output, Reply with quote

hello,
thank you for your Answer but my question is the flowing:
I have a good cuda file: test.cu , can compile it using nvcc and the output run on the GPU
Can I compile using the PGI suite in order to run on the GPU too?
Tks again,
bilel
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Sep 22, 2011 7:34 am    Post subject: Reply with quote

Hi bilel,

Quote:
Can I compile using the PGI suite in order to run on the GPU too?
Not yet. The first generation CUDA X86 product only targets multi-core x86.

Full details can be found here:[url] http://www.pgroup.com/resources/cuda-x86.htm[/url]

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming 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