You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot reproduce the issue in Ubuntu20.04 with CUDA11.3 (same runtime as used for the conda binaries) using the provided commands.
Also I have just moved from ubuntu 20.04 to 21.10
Since Ubuntu 21.10 ships with GCC11, you might be hitting issues such as this one.
Based on your setup information you are using CUDA11.5.1, which supports Ubuntu 18.04 and 20.04 as described here, and I would stick to the supported OS releases.
so no, my pt-1.11 apex build just happened to work because I built it before the upgrade to Ubuntu-21.10. Now I tried to rebuild it and it failed the same way as in the OP.
So here is the proper solution for those on Ubuntu 21.10 which comes with gcc/g++-11.
You need to install gcc/g++-10 and switch to this version:
sudo apt -y install gcc-10 g++-10
sudo apt -y install gcc-11 g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
# now choose the default gcc / g++ to be version 10 when prompted
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
# test
gcc --version
g++ --version
Describe the Bug
amp_C
fails to load when apex is built against pytorch-1.10.2It works just fine if I build against pytorch-1.11.0
Also I have just moved from ubuntu 20.04 to 21.10, and I had no problem using apex built against pt-1.10 until now.
Minimal Steps/Code to Reproduce the Bug
Install:
Diagnosis:
missing symbol:
I have rebuilt it about 5 times to make sure but something is still missing.
Thank you!
Environment
The text was updated successfully, but these errors were encountered: