cuda.bindings._v2.driver.array_get_memory_requirements#
- cuda.bindings._v2.driver.array_get_memory_requirements(intptr_t array, int device)#
Returns the memory requirements of a CUDA array.
Returns the memory requirements of a CUDA array in
memory_requirementsIf the CUDA array is not allocated with flagCUDA_ARRAY3D_DEFERRED_MAPPINGCUDA_ERROR_INVALID_VALUEwill be returned. The returned value inCUDA_ARRAY_MEMORY_REQUIREMENTS.sizerepresents the total size of the CUDA array. The returned value inCUDA_ARRAY_MEMORY_REQUIREMENTS.alignmentrepresents the alignment necessary for mapping the CUDA array.- Parameters:
array (intptr_t) – CUDA array to get the memory requirements of.
device (int) – Device to get the memory requirements for.
- Returns:
- Pointer to
CUDA_ARRAY_MEMORY_REQUIREMENTS.
- Return type:
See also
cuArrayGetMemoryRequirements