hiphostalloc Interface Reference#
hipfort::hiphostalloc Interface Reference
Allocate device accessible page locked host memory. More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hiphostalloc_ (ptr, mysize, flags) |
Detailed Description
Allocate device accessible page locked host memory.
- Parameters
-
[out] ptr - Pointer to the allocated host pinned memory [in] mySize - Requested memory size in bytes [in] flags - Type of host memory allocation see below
If size is 0, no memory is allocated, *ptr returns nullptr, and hipSuccess is returned.
Flags:
hipHostAllocDefaultDefault pinned memory allocation on the host.hipHostAllocPortableMemory is considered allocated by all contexts.hipHostAllocMappedMap the allocation into the address space for the current device.hipHostAllocWriteCombinedAllocates the memory as write-combined.hipHostAllocUncachedAllocate the host memory on extended fine grained access system memory pool
- Returns
hipSuccess,hipErrorOutOfMemory,hipErrorInvalidValue
Member Function/Subroutine Documentation
◆ hiphostalloc_()
| integer(kind(hipsuccess)) function hipfort::hiphostalloc::hiphostalloc_ | ( | type(c_ptr) | ptr, |
| integer(c_size_t), value | mysize, | ||
| integer(c_int), value | flags | ||
| ) |
The documentation for this interface was generated from the following file: