Closed catid closed 7 months ago
This fixes the build for newer PyTorch.. Works for GCC-12 but fails for GCC-13 (seems to be a PyTorch software bug that needs to be fixed).
On Ubuntu you can set the GCC version by installing it with:
sudo apt install gcc-12 g++-12 cpp-12 sudo update-alternatives --set g++ /usr/bin/g++-12 sudo update-alternatives --set gcc /usr/bin/gcc-12 sudo update-alternatives --set cpp-bin /usr/bin/cpp-12
This fixes the build for newer PyTorch.. Works for GCC-12 but fails for GCC-13 (seems to be a PyTorch software bug that needs to be fixed).
On Ubuntu you can set the GCC version by installing it with: