From 5980fb069c24fefab39fc2c8c8b29f145bae46ed Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Thu, 23 Jun 2022 03:39:24 +0530 Subject: [PATCH] SWDEV-336538 - Update hipDeviceSetSharedMemConfig test (#2764) Change-Id: Idc146a77007618454150a974a54b74cb2ef9ea31 [ROCm/hip commit: 334df00d36ad96c2ad52c03f2f96d752d71da89f] --- .../hip/tests/catch/unit/device/hipDeviceSetGetCacheConfig.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/hip/tests/catch/unit/device/hipDeviceSetGetCacheConfig.cc b/projects/hip/tests/catch/unit/device/hipDeviceSetGetCacheConfig.cc index b3559e54a4..01dfdc3d63 100644 --- a/projects/hip/tests/catch/unit/device/hipDeviceSetGetCacheConfig.cc +++ b/projects/hip/tests/catch/unit/device/hipDeviceSetGetCacheConfig.cc @@ -37,5 +37,9 @@ TEST_CASE("Unit_hipDeviceGetCacheConfig_FuncTst") { (cacheConfig != hipFuncCachePreferEqual))); // This code exists to test the dummy implementation of // hipDeviceSetCacheConfig. +#if HT_NVIDIA HIP_CHECK(hipDeviceSetCacheConfig(cacheConfig)); +#else + REQUIRE_FALSE(hipSuccess == hipDeviceSetCacheConfig(cacheConfig)); +#endif }