audio: Torchaudio + tensorflow + CUDA 11.0 = segfault
đ Bug
Importing torchaudio after tensorflow-gpu while using CUDA 11.0 causes a segfault. This issue was originally reported in the AugLy repo: https://github.com/facebookresearch/AugLy/issues/28.
To Reproduce
Steps to reproduce the behavior:
Only happens on CUDA 11.0, so we havenât been able to reproduce this error.
import tensorflow
import augly.audio as audaugs
Output:
2021-06-18 18:42:04.241048: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Segmentation fault (core dumped)
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.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15
Commits related to this issue
- Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility Summary: As called out in https://github.com/facebookresearch/AugLy/issues/28, there are some conflicting dependencies between `torchaudi... — committed to jbitton/AugLy by jbitton 3 years ago
- Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility (#43) * Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility Summary: As called out in https://github.com/facebookresearch/A... — committed to facebookresearch/AugLy by jbitton 3 years ago
- Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility (#43) * Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility Summary: As called out in https://github.com/facebookresearch/A... — committed to tanujdhiman/AugLy by jbitton 3 years ago
- Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility (#43) * Update `torchaudio` to 0.9 for `tensorflow-gpu` compatibility Summary: As called out in https://github.com/facebookresearch/A... — committed to tanujdhiman/AugLy by jbitton 3 years ago
Closing this issue as it does not happen in recent release (0.9) and master branch. The reason why it does not work with 0.8 is still unknown but we do not update the past release as-well, so we recommend users to use the 0.9.