Skip to content

Commit

Permalink
use gcc-8 to align with dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
lsy323 committed Jul 13, 2023
1 parent f5015ff commit a93402f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ function install_deps_pytorch_xla() {

sudo ln -s "$(command -v bazelisk)" /usr/bin/bazel

# Install gcc-11
# Install gcc-8
sudo apt-get update
# Update ppa for GCC
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update -y
sudo apt install -y gcc-11
sudo apt install -y g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100
sudo apt install -y gcc-8
sudo apt install -y g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100

export NVCC_PREPEND_FLAGS='-ccbin /usr/bin/g++-11'
export NVCC_PREPEND_FLAGS='-ccbin /usr/bin/g++-8'

# Symnlink the missing cuda headers if exists
CUBLAS_PATTERN="/usr/include/cublas*"
Expand Down

0 comments on commit a93402f

Please sign in to comment.