From 8d0be0c17ff4c5250a2f689cbc3081162db39059 Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Wed, 26 Jul 2023 16:14:40 -0400 Subject: [PATCH] Silence parenthesis warnings in mem API Fix KFD version checking parenthesis warnings on compile. Change-Id: I89c46ea84a8d75b761d8c40ff62d008c7afbef2d [ROCm/ROCR-Runtime commit: c5dbb93e593828fc308580c8b7948951268f38c1] --- .../rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp index 07c94a104f..c3187880c7 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -1623,8 +1623,8 @@ void Runtime::CheckVirtualMemApiSupport() { auto kfd_version = core::Runtime::runtime_singleton_->KfdVersion().version; if (kfd_version.KernelInterfaceMajorVersion > 1 || - kfd_version.KernelInterfaceMajorVersion == 1 && - kfd_version.KernelInterfaceMinorVersion >= 12) { + (kfd_version.KernelInterfaceMajorVersion == 1 && + kfd_version.KernelInterfaceMinorVersion >= 12)) { char* error; fn_amdgpu_device_get_fd =