Skip to content

Commit b6a136a

Browse files
vstojiljsystems-assistant[bot]
authored andcommitted
=?UTF-8?q?SWDEV-558836,=20SWDEV-558837=20-=20Add=20hipMem?=
=?UTF-8?q?SetMemPool=20and=20hipMemGetMemPoo=E2=80=A6=20(#1349)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * SWDEV-558836, SWDEV-558837 - Add hipMemSetMemPool and hipMemGetMemPool implementation * Add managed allocation type for mem pools * Update rocprofiler-sdk with APis declaration [rocm-systems] ROCm/rocm-systems#1349 (commit 9a8942a)
1 parent 6b9cd6d commit b6a136a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/hip/hip_runtime_api.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ typedef enum hipMemAllocationType {
12261226
* location while the application is actively using it
12271227
*/
12281228
hipMemAllocationTypePinned = 0x1,
1229+
hipMemAllocationTypeManaged = 0x2,
12291230
hipMemAllocationTypeUncached = 0x40000000,
12301231
hipMemAllocationTypeMax = 0x7FFFFFFF
12311232
} hipMemAllocationType;
@@ -4441,6 +4442,19 @@ hipError_t hipMemPoolExportPointer(hipMemPoolPtrExportData* export_data, void* d
44414442
*/
44424443
hipError_t hipMemPoolImportPointer(void** dev_ptr, hipMemPool_t mem_pool,
44434444
hipMemPoolPtrExportData* export_data);
4445+
/**
4446+
* @brief Sets memory pool for memory location and allocation type.
4447+
*
4448+
*
4449+
*/
4450+
hipError_t hipMemSetMemPool(hipMemLocation* location, hipMemAllocationType type, hipMemPool_t pool);
4451+
/**
4452+
* @brief Retrieves memory pool for memory location and allocation type.
4453+
*
4454+
*
4455+
*/
4456+
hipError_t hipMemGetMemPool(hipMemPool_t* pool, hipMemLocation* location,
4457+
hipMemAllocationType type);
44444458
// Doxygen end of ordered memory allocator
44454459
/**
44464460
* @}

0 commit comments

Comments
 (0)