pub unsafe extern "C" fn cudaArrayGetMemoryRequirements(
memoryRequirements: *mut cudaArrayMemoryRequirements,
array: cudaArray_t,
device: c_int,
) -> cudaError_tExpand description
Returns the memory requirements of a CUDA array.
Returns the memory requirements of a CUDA array in memoryRequirements If the CUDA array is not allocated with flag cudaArrayDeferredMapping cudaError_t::CUDA_ERROR_INVALID_VALUE will be returned.
The returned value in cudaArrayMemoryRequirements::size represents the total size of the CUDA array. The returned value in cudaArrayMemoryRequirements::alignment represents the alignment necessary for mapping the CUDA array.
§Parameters
memoryRequirements: Pointer tocudaArrayMemoryRequirements.array: CUDA array to get the memory requirements of.device: Device to get the memory requirements for.
§Return value
See also: cudaMipmappedArrayGetMemoryRequirements.