hipdevicesetmempool Interface Reference#
hipfort::hipdevicesetmempool Interface Reference
Sets the current memory pool of a device. More...
Public Member Functions | |
| integer(kind(hipsuccess)) function | hipdevicesetmempool_ (device, mem_pool) |
Detailed Description
Sets the current memory pool of a device.
The memory pool must be local to the specified device. hipMallocAsync allocates from the current mempool of the provided stream's device. By default, a device's current memory pool is its default memory pool.
- Note
- Use
hipMallocFromPoolAsyncfor asynchronous memory allocations from a device different than the one the stream runs on.
- Parameters
-
[in] device Device index for the update [in] mem_pool Memory pool for update as the current on the specified device
- Returns
hipSuccess,hipErrorInvalidValue,hipErrorInvalidDevice,hipErrorNotSupported
- See also
- hipDeviceGetDefaultMemPool, hipMallocAsync, hipMemPoolTrimTo, hipMemPoolGetAttribute, hipDeviceSetMemPool, hipMemPoolSetAttribute, hipMemPoolSetAccess, hipMemPoolGetAccess
- Warning
- This API is marked as Beta. While this feature is complete, it can change and might have outstanding issues.
Member Function/Subroutine Documentation
◆ hipdevicesetmempool_()
| integer(kind(hipsuccess)) function hipfort::hipdevicesetmempool::hipdevicesetmempool_ | ( | integer(c_int), value | device, |
| type(c_ptr), value | mem_pool | ||
| ) |
The documentation for this interface was generated from the following file: