hiphostalloc Interface Reference

hiphostalloc Interface Reference#

HIPFORT API Reference: hipfort::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:

  • hipHostAllocDefault Default pinned memory allocation on the host.
  • hipHostAllocPortable Memory is considered allocated by all contexts.
  • hipHostAllocMapped Map the allocation into the address space for the current device.
  • hipHostAllocWriteCombined Allocates the memory as write-combined.
  • hipHostAllocUncached Allocate 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: