From 5e90a5e386274e53b73e18e72b2bdd093cf62ce7 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Fri, 10 Feb 2023 02:59:44 +0530 Subject: [PATCH] SWDEV-362512 - Use macro to check NV or AMD. (#161) Change-Id: If55a25dded52110f55d6c60cdbf0030378e5dd8b --- catch/include/hip_test_common.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catch/include/hip_test_common.hh b/catch/include/hip_test_common.hh index a7be3baca9..774c7aa148 100644 --- a/catch/include/hip_test_common.hh +++ b/catch/include/hip_test_common.hh @@ -141,9 +141,9 @@ static void initHipCtx(hipCtx_t* pcontext) { #endif static inline bool IsGfx11() { -#if defined(HT_NVIDIA) +#if HT_NVIDIA return false; -#elif defined(HT_AMD) +#elif HT_AMD int device = -1; hipDeviceProp_t props{}; HIP_CHECK(hipGetDevice(&device));