diff --git a/src/comgr.cpp b/src/comgr.cpp index b066f85b4a..bbbf57eccf 100644 --- a/src/comgr.cpp +++ b/src/comgr.cpp @@ -1028,7 +1028,8 @@ void BuildAsm(const std::string& name, #if MIOPEN_USE_HIPRTC -#define WORKAROUND_ISSUE_HIPRTC_HIPRTC_HEADER_H 1 // See SWDEV-307838 Issue #1648 +#define WORKAROUND_ISSUE_HIPRTC_HIPRTC_HEADER_H 1 // See SWDEV-307838, issue #1648. +#define WORKAROUND_ISSUE_1674 (HIP_PACKAGE_VERSION_FLAT >= 5003022305ULL) namespace hiprtc { @@ -1292,6 +1293,9 @@ void BuildHip(const std::string& name, opts.push_back("-Wno-newline-eof"); opts.push_back("-Wno-reserved-identifier"); opts.push_back("-Wno-old-style-cast"); +#endif +#if WORKAROUND_ISSUE_1674 + opts.push_back("-Wno-gnu-line-marker"); #endif opts.push_back("-Wno-cuda-compat"); opts.push_back("-fno-gpu-rdc");