cubecl_hip_sys

Function hipMalloc3DArray

Source
pub unsafe extern "C" fn hipMalloc3DArray(
    array: *mut hipArray_t,
    desc: *const hipChannelFormatDesc,
    extent: hipExtent,
    flags: c_uint,
) -> hipError_t
Expand description

@brief Allocate an array on the device.

@param[out] array Pointer to allocated array in device memory @param[in] desc Requested channel format @param[in] extent Requested array allocation width, height and depth @param[in] flags Requested properties of allocated array @return #hipSuccess, #hipErrorOutOfMemory

@see hipMalloc, hipMallocPitch, hipFree, hipFreeArray, hipHostMalloc, hipHostFree