From 32a73102eadb4899b1278ab89f0ef1d4e01102c0 Mon Sep 17 00:00:00 2001 From: Satyanvesh Dittakavi Date: Thu, 9 Jun 2022 15:20:46 +0000 Subject: [PATCH] SWDEV-336538 - Return hipErrorNotSupported for unsupported APIs Change-Id: Ie54771c2f58eebacdc0248bc116ef093f99eb9b8 [ROCm/clr commit: c6647487e09163a92c15c4d6a7c86cedec14d10d] --- projects/clr/hipamd/src/hip_device_runtime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/src/hip_device_runtime.cpp b/projects/clr/hipamd/src/hip_device_runtime.cpp index c76a16aa5c..40052e437c 100644 --- a/projects/clr/hipamd/src/hip_device_runtime.cpp +++ b/projects/clr/hipamd/src/hip_device_runtime.cpp @@ -465,7 +465,7 @@ hipError_t hipDeviceSetCacheConfig ( hipFuncCache_t cacheConfig ) { // No way to set cache config yet. - HIP_RETURN(hipSuccess); + HIP_RETURN(hipErrorNotSupported); } hipError_t hipDeviceSetLimit ( hipLimit_t limit, size_t value ) { @@ -492,7 +492,7 @@ hipError_t hipDeviceSetSharedMemConfig ( hipSharedMemConfig config ) { // No way to set cache config yet. - HIP_RETURN(hipSuccess); + HIP_RETURN(hipErrorNotSupported); } hipError_t hipDeviceSynchronize ( void ) {