PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

CUDA limit of 256 byte for parameter passing

 
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: Thu Apr 29, 2010 8:42 am    Post subject: CUDA limit of 256 byte for parameter passing Reply with quote

Hi.
In CC 1.x, the parameter passing from a host code to a global function is limited to 256 bytes. So, in Fortran global subroutine, I will get a compile error if the subroutine has too many arguments. The question is, if the device data is defined in the module, not passing via argument, would it be counted in this limitation?
Tuan
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Apr 29, 2010 9:22 am    Post subject: Reply with quote

Hi Tuan,

Quote:
The question is, if the device data is defined in the module, not passing via argument, would it be counted in this limitation?
No. Using device module data is the recommended way of working around CUDA's 256 byte limit. This was one of the main reasons our engineers worked very hard to get support for allocatable arrays in device module data into the 10.4 release.

- 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