@@ -483,7 +483,8 @@ enum hip_api_id_t {
483483 HIP_API_ID_hipKernelGetAttribute = 457,
484484 HIP_API_ID_hipKernelSetAttribute = 458,
485485 HIP_API_ID_hipKernelGetFunction = 459,
486- HIP_API_ID_LAST = 459,
486+ HIP_API_ID_hipMemGetDefaultMemPool = 460,
487+ HIP_API_ID_LAST = 460,
487488
488489 HIP_API_ID_hipChooseDevice = HIP_API_ID_CONCAT(HIP_API_ID_,hipChooseDevice),
489490 HIP_API_ID_hipGetDeviceProperties = HIP_API_ID_CONCAT(HIP_API_ID_,hipGetDeviceProperties),
@@ -795,6 +796,7 @@ static inline const char* hip_api_name(const uint32_t id) {
795796 case HIP_API_ID_hipMemGetAddressRange: return "hipMemGetAddressRange";
796797 case HIP_API_ID_hipMemGetAllocationGranularity: return "hipMemGetAllocationGranularity";
797798 case HIP_API_ID_hipMemGetAllocationPropertiesFromHandle: return "hipMemGetAllocationPropertiesFromHandle";
799+ case HIP_API_ID_hipMemGetDefaultMemPool: return "hipMemGetDefaultMemPool";
798800 case HIP_API_ID_hipMemGetHandleForAddressRange: return "hipMemGetHandleForAddressRange";
799801 case HIP_API_ID_hipMemGetInfo: return "hipMemGetInfo";
800802 case HIP_API_ID_hipMemGetMemPool: return "hipMemGetMemPool";
@@ -1248,6 +1250,7 @@ static inline uint32_t hipApiIdByName(const char* name) {
12481250 if (strcmp("hipMemGetAddressRange", name) == 0) return HIP_API_ID_hipMemGetAddressRange;
12491251 if (strcmp("hipMemGetAllocationGranularity", name) == 0) return HIP_API_ID_hipMemGetAllocationGranularity;
12501252 if (strcmp("hipMemGetAllocationPropertiesFromHandle", name) == 0) return HIP_API_ID_hipMemGetAllocationPropertiesFromHandle;
1253+ if (strcmp("hipMemGetDefaultMemPool", name) == 0) return HIP_API_ID_hipMemGetDefaultMemPool;
12511254 if (strcmp("hipMemGetHandleForAddressRange", name) == 0) return HIP_API_ID_hipMemGetHandleForAddressRange;
12521255 if (strcmp("hipMemGetInfo", name) == 0) return HIP_API_ID_hipMemGetInfo;
12531256 if (strcmp("hipMemGetMemPool", name) == 0) return HIP_API_ID_hipMemGetMemPool;
@@ -3041,6 +3044,13 @@ typedef struct hip_api_data_s {
30413044 hipMemAllocationProp prop__val;
30423045 hipMemGenericAllocationHandle_t handle;
30433046 } hipMemGetAllocationPropertiesFromHandle;
3047+ struct {
3048+ hipMemPool_t* memPool;
3049+ hipMemPool_t memPool__val;
3050+ hipMemLocation* location;
3051+ hipMemLocation location__val;
3052+ hipMemAllocationType type;
3053+ } hipMemGetDefaultMemPool;
30443054 struct {
30453055 void* handle;
30463056 hipDeviceptr_t dptr;
@@ -5737,6 +5747,12 @@ typedef struct hip_api_data_s {
57375747 cb_data.args.hipMemGetAllocationPropertiesFromHandle.prop = (hipMemAllocationProp*)prop; \
57385748 cb_data.args.hipMemGetAllocationPropertiesFromHandle.handle = (hipMemGenericAllocationHandle_t)handle; \
57395749};
5750+ // hipMemGetDefaultMemPool[('hipMemPool_t*', 'memPool'), ('hipMemLocation*', 'location'), ('hipMemAllocationType', 'type')]
5751+ #define INIT_hipMemGetDefaultMemPool_CB_ARGS_DATA(cb_data) { \
5752+ cb_data.args.hipMemGetDefaultMemPool.memPool = (hipMemPool_t*)memPool; \
5753+ cb_data.args.hipMemGetDefaultMemPool.location = (hipMemLocation*)location; \
5754+ cb_data.args.hipMemGetDefaultMemPool.type = (hipMemAllocationType)type; \
5755+ };
57405756// hipMemGetHandleForAddressRange[('void*', 'handle'), ('hipDeviceptr_t', 'dptr'), ('size_t', 'size'), ('hipMemRangeHandleType', 'handleType'), ('unsigned long long', 'flags')]
57415757#define INIT_hipMemGetHandleForAddressRange_CB_ARGS_DATA(cb_data) { \
57425758 cb_data.args.hipMemGetHandleForAddressRange.handle = (void*)handle; \
@@ -8040,6 +8056,11 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
80408056 case HIP_API_ID_hipMemGetAllocationPropertiesFromHandle:
80418057 if (data->args.hipMemGetAllocationPropertiesFromHandle.prop) data->args.hipMemGetAllocationPropertiesFromHandle.prop__val = *(data->args.hipMemGetAllocationPropertiesFromHandle.prop);
80428058 break;
8059+ // hipMemGetDefaultMemPool[('hipMemPool_t*', 'memPool'), ('hipMemLocation*', 'location'), ('hipMemAllocationType', 'type')]
8060+ case HIP_API_ID_hipMemGetDefaultMemPool:
8061+ if (data->args.hipMemGetDefaultMemPool.memPool) data->args.hipMemGetDefaultMemPool.memPool__val = *(data->args.hipMemGetDefaultMemPool.memPool);
8062+ if (data->args.hipMemGetDefaultMemPool.location) data->args.hipMemGetDefaultMemPool.location__val = *(data->args.hipMemGetDefaultMemPool.location);
8063+ break;
80438064// hipMemGetHandleForAddressRange[('void*', 'handle'), ('hipDeviceptr_t', 'dptr'), ('size_t', 'size'), ('hipMemRangeHandleType', 'handleType'), ('unsigned long long', 'flags')]
80448065 case HIP_API_ID_hipMemGetHandleForAddressRange:
80458066 break;
@@ -10876,6 +10897,15 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
1087610897 oss << ", handle="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetAllocationPropertiesFromHandle.handle);
1087710898 oss << ")";
1087810899 break;
10900+ case HIP_API_ID_hipMemGetDefaultMemPool:
10901+ oss << "hipMemGetDefaultMemPool(";
10902+ if (data->args.hipMemGetDefaultMemPool.memPool == NULL) oss << "memPool=NULL";
10903+ else { oss << "memPool="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetDefaultMemPool.memPool__val); }
10904+ if (data->args.hipMemGetDefaultMemPool.location == NULL) oss << ", location=NULL";
10905+ else { oss << ", location="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetDefaultMemPool.location__val); }
10906+ oss << ", type="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetDefaultMemPool.type);
10907+ oss << ")";
10908+ break;
1087910909 case HIP_API_ID_hipMemGetHandleForAddressRange:
1088010910 oss << "hipMemGetHandleForAddressRange(";
1088110911 oss << "handle="; roctracer::hip_support::detail::operator<<(oss, data->args.hipMemGetHandleForAddressRange.handle);
0 commit comments