Function cudaArrayGetMemoryRequirements

Source
pub unsafe extern "C" fn cudaArrayGetMemoryRequirements(
    memoryRequirements: *mut cudaArrayMemoryRequirements,
    array: cudaArray_t,
    device: c_int,
) -> cudaError_t
Expand description

\brief Returns the memory requirements of a CUDA array

Returns the memory requirements of a CUDA array in \p 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.

\return ::cudaSuccess ::cudaErrorInvalidValue

\param[out] memoryRequirements - Pointer to ::cudaArrayMemoryRequirements \param[in] array - CUDA array to get the memory requirements of \param[in] device - Device to get the memory requirements for \sa ::cudaMipmappedArrayGetMemoryRequirements