PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Is it possible to call a CUDA kernel from PGI compiled code?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Tue Nov 27, 2012 3:12 pm    Post subject: Reply with quote

Quote:
That's what you are talking about, right?
Yes. The CUDA header files are configured to use GNU or MSC (I'm guessing icc sets some macros making it appear like gcc).

Quote:
Please correct me if I'm mistaken, my compute.c file is not allowed to include the cuda_runtime.h and make cuda api calls? So I have to move all
cuda api calls to a different file which needs to be compiled with the nvcc?
Thanks correct. All CUDA API calls and headers need to be put in a separate source file which then can be compiled by NVCC.

- Mat
Back to top
View user's profile
PaulPa



Joined: 02 Aug 2012
Posts: 35

PostPosted: Wed Nov 28, 2012 12:29 am    Post subject: Reply with quote

Thanks for the clarification. It would be nice if either PGI or NVIDIA could do something about this in the future, since the current workaround is somehow inconvenient.

Best, Paul
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Nov 28, 2012 8:48 am    Post subject: Reply with quote

Quote:
It would be nice if either PGI or NVIDIA could do something about this in the future,
Please send in a request to NVIDIA. We keep asking but maybe having a few user ask as well would help.

- 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
Goto page Previous  1, 2
Page 2 of 2

 
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