-
Notifications
You must be signed in to change notification settings - Fork 695
Torchaudio + tensorflow + CUDA 11.0 = segfault #1595
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
Comments
Hi @zpapakipos What PyTorch version is this? Can you verify that it's not PyTorch? |
The error is happening to me as I reported in this issue: facebookresearch/AugLy#28
Answering your question, the PyTorch version is the version installed by AugLy Doing a:
The last file opened before the segfault is: More information about my environment:
Please let me know if you need additional information. |
@mcanan Thanks. Can you replace |
It doesn't fail:
In the other case the output is this:
|
Oh that's interesting. Can you run |
|
Do you use CUDA from both TF and PyTorch? The original issue description says |
We don't use PyTorch. We use only TF for DL. |
So first uninstall PyTorch and torchaudio To install |
I installed the cpu version and I still have the same
The output is:
The output of
Thank you |
Thanks for the report. One more thing, can you try |
It doesn't fail now. I followed these steps from scratch:
The only error messages I had were these during torch and torchaudio installation:
|
@mcanan Thanks. Grad that it works. @zpapakipos @jbitton Not sure if the version requirements should be bumped up in AugLy's |
@mthrok thank you for helping debug this issue! I'll check the unit tests for AugLy audio with torch 1.9.0 and torchaudio 0.9.0 and see if we're still getting the same expected results :) |
Summary: As called out in facebookresearch#28, there are some conflicting dependencies between `torchaudio`/`torch` 0.8.1/1.8.1 and `tensorflow-gpu`. However, as discovered in pytorch/audio#1595, upgrading to v0.9 etc actually resolve this issue. Thus, I update the torchaudio/torch versions in our `requirements.txt` and I also updated our `numpy` requirement so there are no conflicting dependencies between `tf-gpu` and `augly` :) I verified on my side that all unit tests still pass and that `setup.py` finishes as expected with no errors. I also update `setup.py` to add our README to our PyPI page. Differential Revision: D29292956 fbshipit-source-id: e07f8b3d6d2d8bc9b21af166307f2ae00dbca663
* Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility Summary: As called out in #28, there are some conflicting dependencies between `torchaudio`/`torch` 0.8.1/1.8.1 and `tensorflow-gpu`. However, as discovered in pytorch/audio#1595, upgrading to v0.9 etc actually resolve this issue. Thus, I update the torchaudio/torch versions in our `requirements.txt` and I also updated our `numpy` requirement so there are no conflicting dependencies between `tf-gpu` and `augly` :) I verified on my side that all unit tests still pass and that `setup.py` finishes as expected with no errors. I also update `setup.py` to add our README to our PyPI page. Differential Revision: D29292956 fbshipit-source-id: e07f8b3d6d2d8bc9b21af166307f2ae00dbca663 * Update setup.py Co-authored-by: Zoe Papakipos <[email protected]>
Closing this issue as it does not happen in recent release (0.9) and master branch. |
…okresearch#43) * Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility Summary: As called out in facebookresearch#28, there are some conflicting dependencies between `torchaudio`/`torch` 0.8.1/1.8.1 and `tensorflow-gpu`. However, as discovered in pytorch/audio#1595, upgrading to v0.9 etc actually resolve this issue. Thus, I update the torchaudio/torch versions in our `requirements.txt` and I also updated our `numpy` requirement so there are no conflicting dependencies between `tf-gpu` and `augly` :) I verified on my side that all unit tests still pass and that `setup.py` finishes as expected with no errors. I also update `setup.py` to add our README to our PyPI page. Differential Revision: D29292956 fbshipit-source-id: e07f8b3d6d2d8bc9b21af166307f2ae00dbca663 * Update setup.py Co-authored-by: Zoe Papakipos <[email protected]>
…okresearch#43) * Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility Summary: As called out in facebookresearch#28, there are some conflicting dependencies between `torchaudio`/`torch` 0.8.1/1.8.1 and `tensorflow-gpu`. However, as discovered in pytorch/audio#1595, upgrading to v0.9 etc actually resolve this issue. Thus, I update the torchaudio/torch versions in our `requirements.txt` and I also updated our `numpy` requirement so there are no conflicting dependencies between `tf-gpu` and `augly` :) I verified on my side that all unit tests still pass and that `setup.py` finishes as expected with no errors. I also update `setup.py` to add our README to our PyPI page. Differential Revision: D29292956 fbshipit-source-id: e07f8b3d6d2d8bc9b21af166307f2ae00dbca663 * Update setup.py Co-authored-by: Zoe Papakipos <[email protected]>
🐛 Bug
Importing torchaudio after tensorflow-gpu while using CUDA 11.0 causes a segfault. This issue was originally reported in the AugLy repo: facebookresearch/AugLy#28.
To Reproduce
Steps to reproduce the behavior:
Only happens on CUDA 11.0, so we haven't been able to reproduce this error.
Output:
Expected behavior
No segfault.
Environment
What commands did you used to install torchaudio (conda/pip/build from source)?
pip install -r torch==1.8.1 torchaudio==0.8.1
(in AugLy's requirements.txt)PyTorch Version (e.g., 1.0):
OS (e.g., Linux):
How you installed PyTorch (
conda
,pip
, source):Build command you used (if compiling from source):
Python version:
CUDA/cuDNN version: 11.0
GPU models and configuration:
Any other relevant information:
Additional context
This problem doesn't happen on our (AugLy's maintainers') environments, only on one user's.
The text was updated successfully, but these errors were encountered: