|
| View previous topic :: View next topic |
| Author |
Message |
Tuan
Joined: 11 Jun 2009 Posts: 226
|
Posted: Thu Apr 29, 2010 8:42 am Post subject: CUDA limit of 256 byte for parameter passing |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Apr 29, 2010 9:22 am Post subject: |
|
|
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 |
|
 |
|
|
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 © 2001, 2002 phpBB Group
|