Skip to main content

cudaMipmappedArrayGetSparseProperties

Function cudaMipmappedArrayGetSparseProperties 

Source
pub unsafe extern "C" fn cudaMipmappedArrayGetSparseProperties(
    sparseProperties: *mut cudaArraySparseProperties,
    mipmap: cudaMipmappedArray_t,
) -> cudaError_t
Expand description

Returns the layout properties of a sparse CUDA mipmapped array.

Returns the sparse array layout properties in sparseProperties. If the CUDA mipmapped array is not allocated with flag cudaArraySparse cudaError_t::CUDA_ERROR_INVALID_VALUE will be returned.

For non-layered CUDA mipmapped arrays, cudaArraySparseProperties::miptailSize returns the size of the mip tail region. The mip tail region includes all mip levels whose width, height or depth is less than that of the tile. For layered CUDA mipmapped arrays, if cudaArraySparseProperties::flags contains cudaArraySparsePropertiesSingleMipTail, then cudaArraySparseProperties::miptailSize specifies the size of the mip tail of all layers combined. Otherwise, cudaArraySparseProperties::miptailSize specifies mip tail size per layer. The returned value of cudaArraySparseProperties::miptailFirstLevel is valid only if cudaArraySparseProperties::miptailSize is non-zero.

§Parameters

  • sparseProperties: Pointer to return cudaArraySparseProperties.
  • mipmap: The CUDA mipmapped array to get the sparse properties of.

§Return value

See also: cudaArrayGetSparseProperties, cuMemMapArrayAsync.