PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

using assignment or cuda API for 2D/3D array

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



Joined: 11 Jun 2009
Posts: 233

PostPosted: Tue Dec 21, 2010 12:57 pm    Post subject: using assignment or cuda API for 2D/3D array Reply with quote

I'm planning to use 2D/3D data array for PDE solving. I'm not sure if using cuda runtime API for array allocation/memory transfer or using CUDA Fortran allocate()/assignment is better?

Could someone give me an advice?

Also, does CUDA Fortran support all CUDA runtime APIs necessary for manipulating 2D/3D array?

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



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

PostPosted: Mon Jan 03, 2011 1:14 pm    Post subject: Reply with quote

Hi Tuan,

When you do a host to device assignment, the compiler will select the appropriate allocation and assignment CUDA calls. Though, you can call the 2D/3D CUDA API calls directly as well. For new CUDA API calls not listed in the PGI CUDA Fortran reference manual, you simply need to add an explicit interface to the routines before calling them.

- Mat
Back to top
View user's profile
Tuan



Joined: 11 Jun 2009
Posts: 233

PostPosted: Mon Jan 03, 2011 2:25 pm    Post subject: Reply with quote

Thanks a lot Mat. I thought you had forgotten my question :)


Tuan
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jan 03, 2011 2:29 pm    Post subject: Reply with quote

Quote:
I thought you had forgotten my question :)
Nope, just on vacation over the holidays. I tried to answer a few questions from home but only had time for a few.

- 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