hipextmallocwithflags Interface Reference#
hipfort::hipextmallocwithflags Interface Reference
Allocate memory on the default accelerator. More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hipextmallocwithflags_ (ptr, sizebytes, flags) |
Detailed Description
Allocate memory on the default accelerator.
- Parameters
-
[out] ptr - Pointer to the allocated memory [in] sizeBytes - Requested memory size [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.
- Returns
hipSuccess,hipErrorOutOfMemory,hipErrorInvalidValue(bad context, null *ptr)
- See also
- hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostFree, hiHostMalloc
Member Function/Subroutine Documentation
◆ hipextmallocwithflags_()
| integer(kind(hipsuccess)) function hipfort::hipextmallocwithflags::hipextmallocwithflags_ | ( | type(c_ptr) | ptr, |
| integer(c_size_t), value | sizebytes, | ||
| integer(c_int), value | flags | ||
| ) |
The documentation for this interface was generated from the following file: