From 6d317ef831fab09f2d336652f34fbb2c1c00ccd8 Mon Sep 17 00:00:00 2001 From: Sarbojit Sarkar Date: Wed, 14 Apr 2021 06:51:13 +0000 Subject: [PATCH] SWDEV-261977 - Updated API to return runtime version Change-Id: Id2373843c854c83ba06854dd05c61755d0264d8f --- hipamd/rocclr/hip_context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hipamd/rocclr/hip_context.cpp b/hipamd/rocclr/hip_context.cpp index 09443d1c61..abc95316a6 100755 --- a/hipamd/rocclr/hip_context.cpp +++ b/hipamd/rocclr/hip_context.cpp @@ -181,7 +181,8 @@ hipError_t hipRuntimeGetVersion(int *runtimeVersion) { HIP_RETURN(hipErrorInvalidValue); } - *runtimeVersion = AMD_PLATFORM_BUILD_NUMBER; + // HIP_VERSION = HIP_VERSION_MAJOR*100 + HIP_MINOR_VERSION + *runtimeVersion = HIP_VERSION; HIP_RETURN(hipSuccess); }