Attribute Macro cuda_std::address_space

source · []
#[address_space]
Expand description

Notifies the codegen to put a static/static mut inside of a specific memory address space. This is mostly for internal use and/or advanced users, as the codegen and cuda_std handle address space placement implicitly. Improper use of this macro could yield weird or undefined behavior.

This macro takes a single argument which can either be global, shared, constant, or local.

This macro does nothing on the CPU.