@@ -482,7 +482,8 @@ enum hip_api_id_t {
482482 HIP_API_ID_hipKernelGetAttribute = 457,
483483 HIP_API_ID_hipKernelSetAttribute = 458,
484484 HIP_API_ID_hipKernelGetFunction = 459,
485- HIP_API_ID_LAST = 459,
485+ HIP_API_ID_hipMemGetDefaultMemPool = 460,
486+ HIP_API_ID_LAST = 460,
486487
487488 HIP_API_ID_hipChooseDevice = HIP_API_ID_CONCAT(HIP_API_ID_,hipChooseDevice),
488489 HIP_API_ID_hipGetDeviceProperties = HIP_API_ID_CONCAT(HIP_API_ID_,hipGetDeviceProperties),
@@ -794,6 +795,7 @@ static inline const char* hip_api_name(const uint32_t id) {
794795 case HIP_API_ID_hipMemGetAddressRange: return "hipMemGetAddressRange";
795796 case HIP_API_ID_hipMemGetAllocationGranularity: return "hipMemGetAllocationGranularity";
796797 case HIP_API_ID_hipMemGetAllocationPropertiesFromHandle: return "hipMemGetAllocationPropertiesFromHandle";
798+ case HIP_API_ID_hipMemGetDefaultMemPool: return "hipMemGetDefaultMemPool";
797799 case HIP_API_ID_hipMemGetHandleForAddressRange: return "hipMemGetHandleForAddressRange";
798800 case HIP_API_ID_hipMemGetInfo: return "hipMemGetInfo";
799801 case HIP_API_ID_hipMemGetMemPool: return "hipMemGetMemPool";
@@ -1247,6 +1249,7 @@ static inline uint32_t hipApiIdByName(const char* name) {
12471249 if (strcmp("hipMemGetAddressRange", name) == 0) return HIP_API_ID_hipMemGetAddressRange;
12481250 if (strcmp("hipMemGetAllocationGranularity", name) == 0) return HIP_API_ID_hipMemGetAllocationGranularity;
12491251 if (strcmp("hipMemGetAllocationPropertiesFromHandle", name) == 0) return HIP_API_ID_hipMemGetAllocationPropertiesFromHandle;
1252+ if (strcmp("hipMemGetDefaultMemPool", name) == 0) return HIP_API_ID_hipMemGetDefaultMemPool;
12501253 if (strcmp("hipMemGetHandleForAddressRange", name) == 0) return HIP_API_ID_hipMemGetHandleForAddressRange;
12511254 if (strcmp("hipMemGetInfo", name) == 0) return HIP_API_ID_hipMemGetInfo;
12521255 if (strcmp("hipMemGetMemPool", name) == 0) return HIP_API_ID_hipMemGetMemPool;
@@ -3040,6 +3043,13 @@ typedef struct hip_api_data_s {
30403043 hipMemAllocationProp prop__val;
30413044 hipMemGenericAllocationHandle_t handle;
30423045 } hipMemGetAllocationPropertiesFromHandle;
3046+ struct {
3047+ hipMemPool_t* memPool;
3048+ hipMemPool_t memPool__val;
3049+ hipMemLocation* location;
3050+ hipMemLocation location__val;
3051+ hipMemAllocationType type;
3052+ } hipMemGetDefaultMemPool;
30433053 struct {
30443054 void* handle;
30453055 hipDeviceptr_t dptr;
@@ -5736,6 +5746,12 @@ typedef struct hip_api_data_s {
57365746 cb_data.args.hipMemGetAllocationPropertiesFromHandle.prop = (hipMemAllocationProp*)prop; \
57375747 cb_data.args.hipMemGetAllocationPropertiesFromHandle.handle = (hipMemGenericAllocationHandle_t)handle; \
57385748};
5749+ // hipMemGetDefaultMemPool[('hipMemPool_t*', 'memPool'), ('hipMemLocation*', 'location'), ('hipMemAllocationType', 'type')]
5750+ #define INIT_hipMemGetDefaultMemPool_CB_ARGS_DATA(cb_data) { \
5751+ cb_data.args.hipMemGetDefaultMemPool.memPool = (hipMemPool_t*)memPool; \
5752+ cb_data.args.hipMemGetDefaultMemPool.location = (hipMemLocation*)location; \
5753+ cb_data.args.hipMemGetDefaultMemPool.type = (hipMemAllocationType)type; \
5754+ };
57395755// hipMemGetHandleForAddressRange[('void*', 'handle'), ('hipDeviceptr_t', 'dptr'), ('size_t', 'size'), ('hipMemRangeHandleType', 'handleType'), ('unsigned long long', 'flags')]
57405756#define INIT_hipMemGetHandleForAddressRange_CB_ARGS_DATA(cb_data) { \
57415757 cb_data.args.hipMemGetHandleForAddressRange.handle = (void*)handle; \
@@ -8039,6 +8055,11 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
80398055 case HIP_API_ID_hipMemGetAllocationPropertiesFromHandle:
80408056 if (data->args.hipMemGetAllocationPropertiesFromHandle.prop) data->args.hipMemGetAllocationPropertiesFromHandle.prop__val = *(data->args.hipMemGetAllocationPropertiesFromHandle.prop);
80418057 break;
8058+ // hipMemGetDefaultMemPool[('hipMemPool_t*', 'memPool'), ('hipMemLocation*', 'location'), ('hipMemAllocationType', 'type')]
8059+ case HIP_API_ID_hipMemGetDefaultMemPool:
8060+ if (data->args.hipMemGetDefaultMemPool.memPool) data->args.hipMemGetDefaultMemPool.memPool__val = *(data->args.hipMemGetDefaultMemPool.memPool);
8061+ if (data->args.hipMemGetDefaultMemPool.location) data->args.hipMemGetDefaultMemPool.location__val = *(data->args.hipMemGetDefaultMemPool.location);
8062+ break;
80428063// hipMemGetHandleForAddressRange[('void*', 'handle'), ('hipDeviceptr_t', 'dptr'), ('size_t', 'size'), ('hipMemRangeHandleType', 'handleType'), ('unsigned long long', 'flags')]
80438064 case HIP_API_ID_hipMemGetHandleForAddressRange:
80448065 break;
@@ -10875,6 +10896,15 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
1087510896 oss << ", handle="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetAllocationPropertiesFromHandle.handle);
1087610897 oss << ")";
1087710898 break;
10899+ case HIP_API_ID_hipMemGetDefaultMemPool:
10900+ oss << "hipMemGetDefaultMemPool(";
10901+ if (data->args.hipMemGetDefaultMemPool.memPool == NULL) oss << "memPool=NULL";
10902+ else { oss << "memPool="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetDefaultMemPool.memPool__val); }
10903+ if (data->args.hipMemGetDefaultMemPool.location == NULL) oss << ", location=NULL";
10904+ else { oss << ", location="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetDefaultMemPool.location__val); }
10905+ oss << ", type="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetDefaultMemPool.type);
10906+ oss << ")";
10907+ break;
1087810908 case HIP_API_ID_hipMemGetHandleForAddressRange:
1087910909 oss << "hipMemGetHandleForAddressRange(";
1088010910 oss << "handle="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetHandleForAddressRange.handle);
0 commit comments