From 10d0ae96381a4f51e9ee8ef1cae83f81fd418eb5 Mon Sep 17 00:00:00 2001 From: "Kandula, Venkateshwar reddy" Date: Thu, 22 May 2025 04:39:31 -0500 Subject: [PATCH] [CLR ABI] step runtime api version hip memset node params (#373) * increase hip api table version for HIP_MEMSET_NODE_PARAMS removed. * update version in static_assert. --------- Co-authored-by: Venkateshwar Reddy Kandula [ROCm/clr commit: ad44dd527f3e74cfb6556da6efd1435243f7bc18] --- .../clr/hipamd/include/hip/amd_detail/hip_api_trace.hpp | 8 ++++++-- projects/clr/hipamd/src/hip_api_trace.cpp | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/projects/clr/hipamd/include/hip/amd_detail/hip_api_trace.hpp b/projects/clr/hipamd/include/hip/amd_detail/hip_api_trace.hpp index 75a881e640..2c4e835ee3 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/hip_api_trace.hpp +++ b/projects/clr/hipamd/include/hip/amd_detail/hip_api_trace.hpp @@ -63,7 +63,7 @@ #define HIP_API_TABLE_STEP_VERSION 0 #define HIP_COMPILER_API_TABLE_STEP_VERSION 0 #define HIP_TOOLS_API_TABLE_STEP_VERSION 0 -#define HIP_RUNTIME_API_TABLE_STEP_VERSION 12 +#define HIP_RUNTIME_API_TABLE_STEP_VERSION 13 // HIP API interface // HIP compiler dispatch functions @@ -1586,8 +1586,12 @@ struct HipDispatchTable { // HIP_RUNTIME_API_TABLE_STEP_VERSION = 12 t_hipMemGetHandleForAddressRange hipMemGetHandleForAddressRange_fn; + + // HIP_RUNTIME_API_TABLE_STEP_VERSION = 13 + // removed HIP_MEMSET_NODE_PARAMS replaced by hipMemsetParams + // DO NOT EDIT ABOVE! - // HIP_RUNTIME_API_TABLE_STEP_VERSION == 12 + // HIP_RUNTIME_API_TABLE_STEP_VERSION == 13 // ******************************************************************************************* // // diff --git a/projects/clr/hipamd/src/hip_api_trace.cpp b/projects/clr/hipamd/src/hip_api_trace.cpp index 23c31799d6..1a6720e1ca 100644 --- a/projects/clr/hipamd/src/hip_api_trace.cpp +++ b/projects/clr/hipamd/src/hip_api_trace.cpp @@ -1995,7 +1995,7 @@ HIP_ENFORCE_ABI(HipDispatchTable, hipMemGetHandleForAddressRange_fn, 476); // HIP_ENFORCE_ABI_VERSIONING(, 9) <- 8 + 1 = 9 HIP_ENFORCE_ABI_VERSIONING(HipDispatchTable, 477) -static_assert(HIP_RUNTIME_API_TABLE_MAJOR_VERSION == 0 && HIP_RUNTIME_API_TABLE_STEP_VERSION == 12, +static_assert(HIP_RUNTIME_API_TABLE_MAJOR_VERSION == 0 && HIP_RUNTIME_API_TABLE_STEP_VERSION == 13, "If you get this error, add new HIP_ENFORCE_ABI(...) code for the new function " "pointers and then update this check so it is true"); #endif