pub unsafe extern "C" fn cudaMallocArray(
array: *mut cudaArray_t,
desc: *const cudaChannelFormatDesc,
width: size_t,
height: size_t,
flags: c_uint,
) -> cudaError_tExpand description
Allocate an array on the device.
Allocates a CUDA array according to the cudaChannelFormatDesc structure desc and returns a handle to the new CUDA array in *array.
The cudaChannelFormatDesc is defined as:
The flags parameter enables different options to be specified that affect the allocation, as follows.
width and height must meet certain size requirements. See cudaMalloc3DArray for more details.
ยงParameters
array: Pointer to allocated array in device memory.desc: Requested channel format.width: Requested array allocation width.height: Requested array allocation height.flags: Requested properties of allocated array.