Skip to main content

cudaArrayGetInfo

Function cudaArrayGetInfo 

Source
pub unsafe extern "C" fn cudaArrayGetInfo(
    desc: *mut cudaChannelFormatDesc,
    extent: *mut cudaExtent,
    flags: *mut c_uint,
    array: cudaArray_t,
) -> cudaError_t
Expand description

Gets info about the specified cudaArray.

Returns in *desc, *extent and *flags respectively, the type, shape and flags of array.

Any of *desc, *extent and *flags may be specified as NULL.

Note that this function may also return error codes from previous, asynchronous launches.

Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.

Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.

§Parameters

  • desc: Returned array type.
  • extent: Returned array shape. 2D arrays will have depth of zero.
  • flags: Returned array flags.
  • array: The cudaArray to get info for.

§Return value

See also: cuArrayGetDescriptor, cuArray3DGetDescriptor.