From 654489fe4aaf501b76e7a95f8eb3aaf4334322c4 Mon Sep 17 00:00:00 2001 From: Jun Liu Date: Thu, 8 Aug 2024 01:20:09 -0700 Subject: [PATCH] Workaround hipRTC warning issue in #3188 --- src/comgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/comgr.cpp b/src/comgr.cpp index aa53b71bb5..b508bced2f 100644 --- a/src/comgr.cpp +++ b/src/comgr.cpp @@ -701,6 +701,7 @@ void BuildAsm(const std::string& name, #define WORKAROUND_ISSUE_HIPRTC_HIPRTC_HEADER_H 1 // See SWDEV-307838, issue #1648. #define WORKAROUND_ISSUE_1674 (HIP_PACKAGE_VERSION_FLAT >= 5003022305ULL) +#define WORKAROUND_ISSUE_3188 (HIP_PACKAGE_VERSION_FLAT >= 6002041133ULL) // See WORKAROUND_SWDEV_413293 in ./CmakeLists.txt #define WORKAROUND_SWDEV_413293 MIOPEN_HIP_COMPILER_HAS_OPTION_OFFLOAD_UNIFORM_BLOCK @@ -975,6 +976,9 @@ void BuildHip(const std::string& name, #endif #if WORKAROUND_ISSUE_1674 opts.push_back("-Wno-gnu-line-marker"); +#endif +#if WORKAROUND_ISSUE_3188 + opts.push_back("-Wno-pass-failed"); #endif opts.push_back("-Wno-cuda-compat"); opts.push_back("-fno-gpu-rdc");