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
hipDeviceSetMemPoolorhipMallocFromPoolAsynccalls.
- Parameters
-
[out] mem_pool Returned memory pool [in] shared_handle OS handle of the pool to open [in] handle_type The type of handle being imported [in] flags Must 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: