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.

ยง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.