SWDEV-362512 - Use macro to check NV or AMD. (#161)

Change-Id: If55a25dded52110f55d6c60cdbf0030378e5dd8b
Этот коммит содержится в:
ROCm CI Service Account
2023-02-10 02:59:44 +05:30
коммит произвёл GitHub
родитель 88fbbd666b
Коммит 5e90a5e386
+2 -2
Просмотреть файл
@@ -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));