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)); }