PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Preprocessor hook for CUDA Fortran

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



Joined: 06 Jul 2009
Posts: 306
Location: Greenbelt, MD

PostPosted: Tue Mar 09, 2010 9:06 am    Post subject: Preprocessor hook for CUDA Fortran Reply with quote

I know when I use -ta=nvidia, that I can use _ACCEL as a preprocessor ifdef hook to add in Accelerator-only code in my drivers. I use this to auto-select MPI processors for specific devices.

My obvious question now: is there a similar variable defined when -Mcuda is used?

Thanks,
Matt
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Mar 09, 2010 5:37 pm    Post subject: Reply with quote

Hi Matt,

There is one yet, but I just put in a request (TPR#16692) and hopefully our engineers can add it to the next release.

Thanks,
Mat
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Jun 04, 2010 9:23 am    Post subject: Reply with quote

Hi Matt,

FYI, we'll begin defining the processor macro "_CUDA" for CUDA Fortran programs in the 10.6 release.

- Mat
Back to top
View user's profile
TheMatt



Joined: 06 Jul 2009
Posts: 306
Location: Greenbelt, MD

PostPosted: Fri Jun 04, 2010 10:26 am    Post subject: Reply with quote

Thanks, Mat. This'll be much more elegant than my current solution, I imagine.
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