-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[ROCm][Windows] Fix finding ROCm/HIP version #156486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/156486
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 4eb607d with merge base 6c5227b ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "topic: not user facing" |
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.
hip-sdk isn't the only windows build. we should avoid adding if(UNIX) and if(WIN32) to the rocm logic. We should find something that works on both platforms. Best-effort, reasonable fallbacks, etc.
Thanks, TheRock includes rocm-core on Windows: https://github.com/ROCm/TheRock. We also have a rather involved patch for this |
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.
No more hardcoded platform checks for hipsdk paths or features are permitted in pytorch. If you need these, you must parameterize them in some other way -- preferably by setting specific things in your own build invocation.
We're working to get all optional features that were left out of hipsdk available on Windows and we can't have this kind of patch anymore.
|
Thank you for explaining that we shouldn't use Here is the code change and explanation for the fix: The following line caused issues on ROCm on Windows. This line sets This is fine in case that we are passing once through this code. On Windows this part of code is executed twice during configuration, so on the second time when we are reaching this line I committed fix without |
It may solve the issue on hipsdk, but not on windows. I am willing to acknowledge that there is a bug, but the solution cannot be to fork around it for windows generally, as I believe this is only a problem with hipsdk. As an aside, we will be removing the other if WIN32 diversions in this file today. |
I agree with you, so as you can see on the last commit we are not checking the OS. Instead, we are first searching for rocm_version.h and if it doesn't exist we are searching for hip_version.h and set ROCM_LIB_NAME to ROCM or HIP according to rocm_version.h or hip_version.h presence |
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.
Thanks. This looks better to me.
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: linux-binary-manywheel / manywheel-py3_9-rocm6_4-build / build Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
|
rocm linux build failed with these changes, must fix. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / linux-jammy-rocm-py3.10 / test (default, 2, 2, linux.rocm.gpu.2) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This commit fixes Windows build issue related to trying to use rocm-core (rocm-core doesn't exist on HIP SDK) Pull Request resolved: pytorch#156486 Approved by: https://github.com/jeffdaily, https://github.com/stellaraccident
This commit fixes Windows build issue related to trying to use rocm-core (rocm-core doesn't exist on HIP SDK) Pull Request resolved: pytorch#156486 Approved by: https://github.com/jeffdaily, https://github.com/stellaraccident
This commit fixes Windows build issue related to trying to use rocm-core (rocm-core doesn't exist on HIP SDK) Pull Request resolved: pytorch#156486 Approved by: https://github.com/jeffdaily, https://github.com/stellaraccident
This commit fixes Windows build issue related to trying to use rocm-core (rocm-core doesn't exist on HIP SDK) Pull Request resolved: pytorch#156486 Approved by: https://github.com/jeffdaily, https://github.com/stellaraccident
This commit fixes Windows build issue related to trying to rocm-core/rocm_version.h or hip/hip_version.h. This is cherry-picked commit from upstream main ([PR](pytorch#156486))
This commit fixes Windows build issue related to trying to use rocm-core (rocm-core doesn't exist on HIP SDK)
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd