hipdevicegetmempool Interface Reference

hipdevicegetmempool Interface Reference#

HIPFORT API Reference: hipfort::hipdevicegetmempool Interface Reference
hipfort::hipdevicegetmempool Interface Reference

Gets the current memory pool for the specified device. More...

Public Member Functions

integer(kind(hipsuccess)) function hipdevicegetmempool_ (mem_pool, device)
 

Detailed Description

Gets the current memory pool for the specified device.

Returns the last pool provided to hipDeviceSetMemPool for this device or the device's default memory pool if hipDeviceSetMemPool has never been called. By default the current mempool is the default mempool for a device, otherwise the returned pool must have been set with hipDeviceSetMemPool.

Parameters
[out]mem_poolCurrent memory pool on the specified device
[in]deviceDevice index to query the current memory pool
Returns
hipSuccess, hipErrorInvalidValue, 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

◆ hipdevicegetmempool_()

integer(kind(hipsuccess)) function hipfort::hipdevicegetmempool::hipdevicegetmempool_ ( type(c_ptr)  mem_pool,
integer(c_int), value  device 
)

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