From b9845982462f424b9ed650071fabfc3d35a6a2c5 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-tests commit: 19b94c4be72d716f5ce93c2b35d27976e50854f5] --- .../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 }