hipmempoolimportfromshareablehandle Interface Reference

hipmempoolimportfromshareablehandle Interface Reference#

HIPFORT API Reference: hipfort::hipmempoolimportfromshareablehandle Interface Reference
hipfort::hipmempoolimportfromshareablehandle Interface Reference

Imports a memory pool from a shared handle. More...

Public Member Functions

integer(kind(hipsuccess)) function hipmempoolimportfromshareablehandle_ (mem_pool, shared_handle, handle_type, flags)
 

Detailed Description

Imports a memory pool from a shared handle.

Specific allocations can be imported from the imported pool with hipMemPoolImportPointer.

Note
Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in hipDeviceSetMemPool or hipMallocFromPoolAsync calls.
Parameters
[out]mem_poolReturned memory pool
[in]shared_handleOS handle of the pool to open
[in]handle_typeThe type of handle being imported
[in]flagsMust be 0
Returns
hipSuccess, hipErrorInvalidValue, hipErrorOutOfMemory
See also
hipMemPoolExportToShareableHandle
Warning
This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
Note
This API is implemented on Linux and is under development on Microsoft Windows.

Member Function/Subroutine Documentation

◆ hipmempoolimportfromshareablehandle_()

integer(kind(hipsuccess)) function hipfort::hipmempoolimportfromshareablehandle::hipmempoolimportfromshareablehandle_ ( type(c_ptr)  mem_pool,
type(c_ptr), value  shared_handle,
integer(kind(hipmemhandletypenone)), value  handle_type,
integer(c_int), value  flags 
)

The documentation for this interface was generated from the following file: