SWDEV-558836, SWDEV-558837 - Add hipMemSetMemPool and hipMemGetMemPoo… (#1349)
* SWDEV-558836, SWDEV-558837 - Add hipMemSetMemPool and hipMemGetMemPool implementation * Add managed allocation type for mem pools * Update rocprofiler-sdk with APis declaration
This commit is contained in:
@@ -1226,6 +1226,7 @@ typedef enum hipMemAllocationType {
|
||||
* location while the application is actively using it
|
||||
*/
|
||||
hipMemAllocationTypePinned = 0x1,
|
||||
hipMemAllocationTypeManaged = 0x2,
|
||||
hipMemAllocationTypeUncached = 0x40000000,
|
||||
hipMemAllocationTypeMax = 0x7FFFFFFF
|
||||
} hipMemAllocationType;
|
||||
@@ -4441,6 +4442,19 @@ hipError_t hipMemPoolExportPointer(hipMemPoolPtrExportData* export_data, void* d
|
||||
*/
|
||||
hipError_t hipMemPoolImportPointer(void** dev_ptr, hipMemPool_t mem_pool,
|
||||
hipMemPoolPtrExportData* export_data);
|
||||
/**
|
||||
* @brief Sets memory pool for memory location and allocation type.
|
||||
*
|
||||
*
|
||||
*/
|
||||
hipError_t hipMemSetMemPool(hipMemLocation* location, hipMemAllocationType type, hipMemPool_t pool);
|
||||
/**
|
||||
* @brief Retrieves memory pool for memory location and allocation type.
|
||||
*
|
||||
*
|
||||
*/
|
||||
hipError_t hipMemGetMemPool(hipMemPool_t* pool, hipMemLocation* location,
|
||||
hipMemAllocationType type);
|
||||
// Doxygen end of ordered memory allocator
|
||||
/**
|
||||
* @}
|
||||
|
||||
Reference in New Issue
Block a user