Default HIP multi-arch workaround on Windows clang-cl#4941
Draft
DanyiLin wants to merge 3 commits into
Draft
Conversation
WinRelease CI failed verify_offload_archs on migraphx_device.dll when the workaround was OFF (UAI Jenkins #373). Enable cmake_dependent_option ON for WIN32 clang-cl MSVC frontend builds. Co-authored-by: Cursor <cursoragent@cursor.com>
Collaborator
|
This should not be enabled by default(as the workaround will still be enabled on the newer fixed clang-cl). If you are using an older clang-cl that is broken then you need to explictly add |
The cmake_dependent_option condition used unquoted MSVC, which expanded to the MSVC variable instead of the frontend variant string and left the workaround OFF in CI. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4941 +/- ##
========================================
Coverage 92.61% 92.61%
========================================
Files 587 587
Lines 30410 30410
========================================
Hits 28164 28164
Misses 2246 2246 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
WinRelease CI failed
verify_offload_archsonmigraphx_device.dllwhenMIGRAPHX_WORKAROUND_HIP_MULTI_ARCH_BUGwas left at its previous default (OFF). The clang-cl HIP multi-arch/Foworkaround from #4920 must be enabled for typical Windows HIP SDK (clang-cl MSVC frontend) builds; requiring an explicit CMake flag is easy to miss in presets and CI.Technical Details
option(MIGRAPHX_WORKAROUND_HIP_MULTI_ARCH_BUG ... OFF)withcmake_dependent_optionso the workaround defaults ON when building on Windows withCMAKE_CXX_COMPILER_IDClang andCMAKE_CXX_COMPILER_FRONTEND_VARIANTMSVC (clang-cl), and OFF otherwise.Changelog Category
Add a
CHANGELOG.mdentry for any option other thanNot ApplicableTest plan
MIGRAPHX_WORKAROUND_HIP_MULTI_ARCH_BUG = ONverify_offload_archspasses formigraphx_device.dllon Windows CI