-
Notifications
You must be signed in to change notification settings - Fork 661
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
[ROCM] add rocm support #1411
[ROCM] add rocm support #1411
Conversation
@facebook-github-bot retest |
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 for the contribution.
As I have no experience/knowledge in ROCm, I will leave the review of the ROCm part to those with expertise, but one naive question I got is the following.
At this moment, torchaudio only contains Python code and custom CPU code. There is no custom CUDA code. (although we plan to do add some CUDA kernel)
I imagined that we could just build torchaudio with C++ complier and the corresponding PyTorch binary. Why does it need to ROCm at build time?
test/torchaudio_unittest/functional/torchscript_consistency_impl.py
Outdated
Show resolved
Hide resolved
@mthrok, the reason was because I encountered multiple cmake errors from various modules failing to find the path to various rocm libraries. I added the LoadHip cmake file and use it find all the various rocm libs. |
@mthrok What should I do about the failing circleci test, binary_macos_conda_py3.7. It seems to have nothing to do with my changes and I cannot rerun the test. |
Build issues are often caused by external reason or upstream issues so we can ignore it. |
Ideally, this should be tested and we should have ROCm build in our CI but that will be a lot of work and I do not want this PR to become stale for that reason, so I am going to merge this. |
The test was broken from the beginning and for a reason unrelated to ROCm, but was disabled for ROCm in pytorch#1411. pytorch#1604 fixed the test so that we are re-enabling it.
The test was broken from the beginning and for a reason unrelated to ROCm, but was disabled for ROCm in pytorch#1411. pytorch#1604 fixed the test so that we are re-enabling it.
…rch#1626) The test was broken from the beginning and for a reason unrelated to ROCm, but was disabled for ROCm in pytorch#1411. pytorch#1604 fixed the test so that we are re-enabling it.
This PR adds support for building pytorch audio in ROCM. We currently disable 5 tests. There is still more work to be done but with the changes in this PR, we can build and test pytorch audio on ROCM.