From 68238c99d2f9f514c7b737f959c3dbb8a6ab1d90 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Thu, 27 Apr 2023 12:26:03 +0000 Subject: [PATCH] SWDEV-397358 - Revert "Return hipErrorNotSupported for unsupported APIs" This reverts commit c6647487e09163a92c15c4d6a7c86cedec14d10d. Change-Id: Idb18e1ce6bcfc1da144fabf1ba01329f4f6604a5 (cherry picked from commit 8d1b76f4c6dc44bd05f6b6117d5354c54bee5c0b) --- hipamd/src/hip_device_runtime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/src/hip_device_runtime.cpp b/hipamd/src/hip_device_runtime.cpp index 481daf534b..7eb3f172e0 100644 --- a/hipamd/src/hip_device_runtime.cpp +++ b/hipamd/src/hip_device_runtime.cpp @@ -474,7 +474,7 @@ hipError_t hipDeviceSetCacheConfig ( hipFuncCache_t cacheConfig ) { // No way to set cache config yet. - HIP_RETURN(hipErrorNotSupported); + HIP_RETURN(hipSuccess); } hipError_t hipDeviceSetLimit ( hipLimit_t limit, size_t value ) { @@ -510,7 +510,7 @@ hipError_t hipDeviceSetSharedMemConfig ( hipSharedMemConfig config ) { } // No way to set cache config yet. - HIP_RETURN(hipErrorNotSupported); + HIP_RETURN(hipSuccess); } hipError_t hipDeviceSynchronize() {