Skip to content

Commit

Permalink
[WORKAROUND] W/A for issue 1674: Disable -Wgnu-line-marker when HIP v…
Browse files Browse the repository at this point in the history
…ersion >= 5.3.2230 (#1707)
  • Loading branch information
atamazov authored Aug 18, 2022
1 parent 2f8b0fa commit a450272
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/comgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit a450272

Please sign in to comment.