[SDK] Update HIP support for ROCm 7.0 (#413)
* Update HIP VERSION to 7.0.0, HIP_RUNTIME_API_TABLE_STEP_VERSION to 13
* Changed rocprofiler_config_interfaces.cmake to check version after finding package
* Update cmake/rocprofiler_config_interfaces.cmake
---------
Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>
[ROCm/rocprofiler-sdk commit: b90ef494dd]
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
3f47d1fffa
işleme
6efbc492f1
@@ -3063,6 +3063,78 @@ typedef union rocprofiler_hip_api_args_t
|
||||
const hipBatchMemOpNodeParams* nodeParams;
|
||||
} hipGraphExecBatchMemOpNodeSetParams;
|
||||
#endif
|
||||
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 9
|
||||
struct
|
||||
{
|
||||
hipEvent_t event;
|
||||
hipStream_t stream;
|
||||
unsigned int flags;
|
||||
} hipEventRecordWithFlags;
|
||||
#endif
|
||||
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 10
|
||||
struct
|
||||
{
|
||||
hipLinkState_t state;
|
||||
hipJitInputType type;
|
||||
void* data;
|
||||
size_t size;
|
||||
const char* name;
|
||||
unsigned int numOptions;
|
||||
hipJitOption* options;
|
||||
void** optionValues;
|
||||
} hipLinkAddData;
|
||||
struct
|
||||
{
|
||||
hipLinkState_t state;
|
||||
hipJitInputType type;
|
||||
const char* path;
|
||||
unsigned int numOptions;
|
||||
hipJitOption* options;
|
||||
void** optionValues;
|
||||
} hipLinkAddFile;
|
||||
struct
|
||||
{
|
||||
hipLinkState_t state;
|
||||
void** hipBinOut;
|
||||
size_t* sizeOut;
|
||||
} hipLinkComplete;
|
||||
struct
|
||||
{
|
||||
unsigned int numOptions;
|
||||
hipJitOption* options;
|
||||
void** optionValues;
|
||||
hipLinkState_t* stateOut;
|
||||
} hipLinkCreate;
|
||||
struct
|
||||
{
|
||||
hipLinkState_t state;
|
||||
} hipLinkDestroy;
|
||||
#endif
|
||||
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 11
|
||||
struct
|
||||
{
|
||||
const hipLaunchConfig_t* config;
|
||||
const void* fPtr;
|
||||
void** args;
|
||||
} hipLaunchKernelExC;
|
||||
struct
|
||||
{
|
||||
const HIP_LAUNCH_CONFIG* config;
|
||||
hipFunction_t f;
|
||||
void** params;
|
||||
void** extra;
|
||||
} hipDrvLaunchKernelEx;
|
||||
#endif
|
||||
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 12
|
||||
struct
|
||||
{
|
||||
void* handle;
|
||||
hipDeviceptr_t dptr;
|
||||
size_t size;
|
||||
hipMemRangeHandleType handleType;
|
||||
unsigned long long flags;
|
||||
} hipMemGetHandleForAddressRange;
|
||||
#endif
|
||||
} rocprofiler_hip_api_args_t;
|
||||
|
||||
ROCPROFILER_EXTERN_C_FINI
|
||||
|
||||
@@ -513,6 +513,23 @@ typedef enum rocprofiler_hip_runtime_api_id_t // NOLINT(performance-enum-size)
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphBatchMemOpNodeGetParams,
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphBatchMemOpNodeSetParams,
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecBatchMemOpNodeSetParams,
|
||||
#endif
|
||||
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 9
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventRecordWithFlags,
|
||||
#endif
|
||||
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 10
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipLinkAddData,
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipLinkAddFile,
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipLinkComplete,
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipLinkCreate,
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipLinkDestroy,
|
||||
#endif
|
||||
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 11
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchKernelExC,
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvLaunchKernelEx,
|
||||
#endif
|
||||
#if HIP_RUNTIME_API_TABLE_STEP_VERSION >= 12
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemGetHandleForAddressRange,
|
||||
#endif
|
||||
ROCPROFILER_HIP_RUNTIME_API_ID_LAST,
|
||||
} rocprofiler_hip_runtime_api_id_t;
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle