Nvidia PTX Variable Attributes (Using the GNU Compiler Collection (GCC)) (original) (raw)
Next: PowerPC Variable Attributes, Previous: MSP430 Variable Attributes, Up: Specifying Attributes of Variables [Contents][Index]
6.4.2.11 Nvidia PTX Variable Attributes ¶
These variable attributes are supported by the Nvidia PTX back end:
shared
¶
Use this attribute to place a variable in the .shared
memory space. This memory space is private to each cooperative thread array; only threads within one thread block refer to the same instance of the variable. The runtime does not initialize variables in this memory space.