From 7ad62083eef7a70362d50733b82832855ec89326 Mon Sep 17 00:00:00 2001 From: Sarbojit Sarkar Date: Fri, 24 Jun 2022 06:08:00 +0000 Subject: [PATCH] SWDEV-342831 - Fix hipGetDeviceCount return Change-Id: I3b0338a51027258319c1926ac02de8d0af01d498 [ROCm/clr commit: 4b9ea686f6c37153f3788e9030e056d1ebe6c94a] --- projects/clr/hipamd/src/hip_device_runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_device_runtime.cpp b/projects/clr/hipamd/src/hip_device_runtime.cpp index 40052e437c..5a380e14cb 100644 --- a/projects/clr/hipamd/src/hip_device_runtime.cpp +++ b/projects/clr/hipamd/src/hip_device_runtime.cpp @@ -535,7 +535,7 @@ hipError_t hipGetDevice ( int* deviceId ) { } hipError_t hipGetDeviceCount ( int* count ) { - HIP_INIT_API(hipGetDeviceCount, count); + HIP_INIT_API_NO_RETURN(hipGetDeviceCount, count); HIP_RETURN(ihipDeviceGetCount(count)); }