pub unsafe extern "C" fn hipExtMallocWithFlags(
ptr: *mut *mut c_void,
sizeBytes: usize,
flags: c_uint,
) -> hipError_t
Expand description
@brief Allocate memory on the default accelerator
@param[out] ptr Pointer to the allocated memory @param[in] sizeBytes Requested memory size @param[in] flags Type of memory allocation
If requested memory size is 0, no memory is allocated, *ptr returns nullptr, and #hipSuccess is returned.
The memory allocation flag should be either #hipDeviceMallocDefault, #hipDeviceMallocFinegrained, #hipDeviceMallocUncached, or #hipMallocSignalMemory. If the flag is any other value, the API returns #hipErrorInvalidValue.
@return #hipSuccess, #hipErrorOutOfMemory, #hipErrorInvalidValue (bad context, null *ptr)
@see hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostFree, hipHostMalloc