Repository navigation
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to #191625, we could consider a
USE_ROCMhelp here to limit when others building pytorch would trigger this code path. Looking at howlibiomp5md.dllis used above though, I think not adding aUSE_ROCMcheck is probably fine?Note that I'm not thrilled about using OpenMP from MSVC in our downstream build scripts, see the comments at https://github.com/ROCm/TheRock/blob/6b2138632e722857796e4b662c64eec7ae21a3ce/external-builds/pytorch/build_prod_wheels.py#L905-L940
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed — I left it without a
USE_ROCMguard to match thelibiomp5md.dllblock above. TheEXISTS "${TORCH_SRC_DIR}/lib/libomp140.x86_64.dll"check already scopes this to builds that actually staged that DLL (i.e. TheRock's MSVC-OpenMP path), so non-ROCm builds won't be affected. Point taken on the broader MSVC-OpenMP concern in the TheRock build scripts; I'll follow up on that separately on the TheRock side rather than in this wheel-packaging fix.