Returns in *size the size of symbol symbol. symbol is a variable that resides in global or constant memory space. If symbol cannot be found, or if symbol is not declared in global or constant memory space, *size is unchanged and the error cudaErrorInvalidSymbol is returned.
- Parameters:
-
| size | - Size of object associated with symbol |
| symbol | - Global variable or string symbol to find size of |
- Returns:
- cudaSuccess, cudaErrorInvalidSymbol
- Note:
- The
symbol paramater may also be a character string, naming a variable that resides in global or constant memory space, however this usage is deprecated as of CUDA 4.1.
Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaGetSymbolAddress (C API) cudaGetSymbolSize (C++ API)