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 cudaErrorInvalidValue 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 to cudaArrayMemoryRequirements.array: CUDA array to get the memory requirements of.device: Device to get the memory requirements for.