-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[ROCm][Windows] Fixing undefined symbol linker error after exposing MIOpen symbols #156479
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/156479
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ You can merge normally! (1 Unrelated Failure)As of commit 981cdb0 with merge base 2d39a48 ( 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" |
|
I don't understand why this is needed. We're not getting missing symbols in our CI or nightly wheels on linux. |
|
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.
The miopen source files should not be hipified. They should contain the necessary HIP calls directly. Please try manually hipifiying those symbols under the miopen source tree.
TORCH_CUDA_CPP_API --> TORCH_HIP_CPP_API
Then commit those changes to this PR.
I rebuilt pytorch with this change to double check and it works on Windows as expected, I see that you already pushed changes. |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
4bc1cc6 to
981cdb0
Compare
|
@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 |
…IOpen symbols (pytorch#156479) Fixing undefined symbol linker error after [exposing MIOpen symbols](pytorch#154545). This fix: - Hipifies `aten/src/ATen/miopen` and `aten/src/ATen/native/miopen` files - Adds `aten/src/ATen/miopen` and `aten/src/ATen/native/miopen` hipified source files to `all_hip_cpp` list Pull Request resolved: pytorch#156479 Approved by: https://github.com/jeffdaily Co-authored-by: Jeff Daily <jeff.daily@amd.com>
…IOpen symbols (pytorch#156479) Fixing undefined symbol linker error after [exposing MIOpen symbols](pytorch#154545). This fix: - Hipifies `aten/src/ATen/miopen` and `aten/src/ATen/native/miopen` files - Adds `aten/src/ATen/miopen` and `aten/src/ATen/native/miopen` hipified source files to `all_hip_cpp` list Pull Request resolved: pytorch#156479 Approved by: https://github.com/jeffdaily Co-authored-by: Jeff Daily <jeff.daily@amd.com>
…IOpen symbols (pytorch#156479) Fixing undefined symbol linker error after [exposing MIOpen symbols](pytorch#154545). This fix: - Hipifies `aten/src/ATen/miopen` and `aten/src/ATen/native/miopen` files - Adds `aten/src/ATen/miopen` and `aten/src/ATen/native/miopen` hipified source files to `all_hip_cpp` list Pull Request resolved: pytorch#156479 Approved by: https://github.com/jeffdaily Co-authored-by: Jeff Daily <jeff.daily@amd.com>
…IOpen symbols (#2415) Changing TORCH_CUDA_CPP_API macros to TORCH_HIP_CPP in MIOpen header files according to closed [PR](pytorch#156479) in pytorch upstream. --------- Signed-off-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@amd.com> Co-authored-by: Jithun Nair <jithun.nair@amd.com> Co-authored-by: Ethan Wee <Ethan.Wee@amd.com> Co-authored-by: Jithun Nair <37884920+jithunnair-amd@users.noreply.github.com> Co-authored-by: Xinya Zhang <Xinya.Zhang@amd.com> Co-authored-by: Prachi Gupta <pracgupt@amd.com> Co-authored-by: Dmitry Nikolaev <139769634+dnikolaev-amd@users.noreply.github.com> Co-authored-by: iupaikov-amd <Iurii.Paikov@amd.com> Co-authored-by: omkar kakarparthi <75638701+okakarpa@users.noreply.github.com> Co-authored-by: Jeff Daily <jeff.daily@amd.com> Co-authored-by: rocm-mici <49319081+rocm-mici@users.noreply.github.com> Co-authored-by: Michael Halkenhäuser <michaelhalk@web.de> Co-authored-by: Hashem Hashemi <hashem.hashemi@amd.com> Co-authored-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@amd.com> Co-authored-by: Andres Lugo <108368282+alugorey@users.noreply.github.com> Co-authored-by: pmaybank <113125070+pmaybank@users.noreply.github.com> Co-authored-by: pnikolic-amd <pnikolic@amd.com> Co-authored-by: Jerry Mannil <65309407+jerrymannil@users.noreply.github.com> Co-authored-by: Sampsa Riikonen <sriikone@amd.com> Co-authored-by: Ramya Ramineni <62723901+rraminen@users.noreply.github.com> Co-authored-by: pytorchbot <soumith+bot@pytorch.org> Co-authored-by: Nikita Shulga <nikita.shulga@gmail.com> Co-authored-by: rzou <zou3519@gmail.com> Co-authored-by: atalman <atalman@fb.com> Co-authored-by: David Berard <dberard@fb.com> Co-authored-by: Frank Lin <eee4017@gmail.com> Co-authored-by: Wei Wang <weiwan@nvidia.com> Co-authored-by: Cao E <e.cao@intel.com> Co-authored-by: Sidharth Subbarao <55903556+Sidharth123-cpu@users.noreply.github.com> Co-authored-by: Camyll Harajli <camyllh@meta.com> Co-authored-by: Aditya Tewari <aditya.tewari@arm.com> Co-authored-by: Christopher Sidebottom <chris.sidebottom@arm.com> Co-authored-by: Ryo Suzuki <ryo.suzuki@arm.com> Co-authored-by: Ye Tao <ye.tao@arm.com> Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com> Co-authored-by: Eli Uriegas <1700823+seemethere@users.noreply.github.com> Co-authored-by: Luca Wehrstedt <lcw@meta.com> Co-authored-by: Robert Hardwick <robert.hardwick@arm.com> Co-authored-by: Svetlana Karslioglu <svekars@meta.com> Co-authored-by: Michael Lazos <mlazos@meta.com> Co-authored-by: bobrenjc93 <bobren@meta.com> Co-authored-by: Nikita Shulga <nshulga@meta.com> Co-authored-by: Jane Xu <janeyx@meta.com> Co-authored-by: charlifu <charlifu@amd.com> Co-authored-by: Jack Taylor <108682042+jataylo@users.noreply.github.com> Co-authored-by: Nichols A. Romero <165712832+naromero77amd@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Sriram Kumar <skishore@amd.com> Co-authored-by: Divin Honnappa <divin.honnappa@amd.com> Co-authored-by: akashveramd <Akash.Verma3@amd.com>
Fixing undefined symbol linker error after exposing MIOpen symbols.
This fix:
aten/src/ATen/miopenandaten/src/ATen/native/miopenfilesaten/src/ATen/miopenandaten/src/ATen/native/miopenhipified source files toall_hip_cpplistcc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd