Skip to content

Commit

Permalink
Workaround hipRTC warning issue in #3188
Browse files Browse the repository at this point in the history
  • Loading branch information
junliume committed Aug 8, 2024
1 parent e38cb34 commit 654489f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/comgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 654489f

Please sign in to comment.