You can pass ordinary values (ie not pointers) and these get copied automatically. In fact, the value of pointers gets copied the same way. You can also pass structs by value (ie automatically), up to 256 bytes total.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Texture Memory / Large Data / Global Memory Advice | 14 | 10766 | May 18, 2010 | |
Shared memory question | 27 | 7422 | June 23, 2008 | |
Some advice needed pls Doubts we have, we're starting with CUDA programming | 16 | 4756 | June 22, 2011 | |
Constant Arrays | 13 | 30611 | November 24, 2007 | |
Please help with __shared__ memory different usage than in samples | 30 | 3379 | January 10, 2010 | |
Why texture/constant memory under FERMI architecture | 23 | 4097 | November 3, 2010 | |
Some confusion on using shared memory. | 26 | 9166 | June 2, 2009 | |
Local memory performance Using more than 4kb kills it.. why? | 24 | 5201 | September 6, 2008 | |
global mem reads coalesced per block or warp? | 5 | 5509 | March 6, 2007 | |
Doubts related to CUDA | 17 | 11829 | November 18, 2010 |