Skip to content

Commit 5df916b

Browse files
authored
Lassen (LLNL): GNU 11.2.1 (#4283)
Switch from Clang 12 to GCC 11 on Lassen (LLNL), due to issues seen in PyTorch and a risk of general vectorization issues in Clang/LLVM for PPC64le in LLVM at this point.
1 parent 36b2f9e commit 5df916b

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

Tools/machines/lassen-llnl/install_v100_dependencies.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ python3 -m pip install --upgrade pip
114114
python3 -m pip cache purge
115115
python3 -m pip install --upgrade wheel
116116
python3 -m pip install --upgrade cython
117-
# see https://github.com/numpy/numpy/issues/24673
118-
python3 -m pip install --upgrade numpy==1.22
117+
python3 -m pip install --upgrade numpy
119118
python3 -m pip install --upgrade pandas
120119
python3 -m pip install --upgrade -Ccompile-args="-j10" scipy
121120
python3 -m pip install --upgrade mpi4py --no-cache-dir --no-build-isolation --no-binary mpi4py

Tools/machines/lassen-llnl/install_v100_ml.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,24 @@ then
3737
cd ${HOME}/src/pytorch
3838
git fetch
3939
git checkout .
40-
git checkout v2.1.0-rc3
40+
git checkout v2.0.1
4141
git submodule update --init --recursive
4242
cd -
4343
else
44-
git clone -b v2.1.0-rc3 --recurse-submodules https://github.com/pytorch/pytorch.git ${HOME}/src/pytorch
44+
git clone -b v2.0.1 --recurse-submodules https://github.com/pytorch/pytorch.git ${HOME}/src/pytorch
4545
fi
4646
cd ${HOME}/src/pytorch
4747
rm -rf build
4848

49-
# see https://github.com/pytorch/pytorch/issues/108931
50-
# https://github.com/pytorch/pytorch/pull/108932
51-
wget -q -O - https://github.com/pytorch/pytorch/pull/108932.patch | git apply
49+
# see https://github.com/pytorch/pytorch/issues/97497#issuecomment-1499069641
50+
# https://github.com/pytorch/pytorch/pull/98511
51+
wget -q -O - https://github.com/pytorch/pytorch/pull/98511.patch | git apply
5252

5353
python3 -m pip install -r requirements.txt
54-
CXX=g++ CC=gcc USE_CUDA=1 BLAS=OpenBLAS MAX_JOBS=64 ATEN_AVX512_256=OFF BUILD_TEST=0 python3 setup.py develop
54+
55+
# see https://github.com/pytorch/pytorch/issues/108984#issuecomment-1712938737
56+
LDFLAGS="-L${CUDA_HOME}/nvidia/targets/ppc64le-linux/lib/" \
57+
USE_CUDA=1 BLAS=OpenBLAS MAX_JOBS=64 ATEN_AVX512_256=OFF BUILD_TEST=0 python3 setup.py develop
5558
# (optional) If using torch.compile with inductor/triton, install the matching version of triton
5659
#make triton
5760
rm -rf build

Tools/machines/lassen-llnl/lassen_v100_warpx.profile.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# required dependencies
55
module load cmake/3.23.1
6-
module load clang/12.0.1-gcc-8.3.1
6+
module load gcc/11.2.1
77
module load cuda/12.0.0
88

99
# optional: for QED lookup table generation support
@@ -46,8 +46,8 @@ export AMREX_CUDA_ARCH=7.0
4646
export CUDAARCHS=70
4747

4848
# compiler environment hints
49-
export CC=$(which clang)
50-
export CXX=$(which clang++)
49+
export CC=$(which gcc)
50+
export CXX=$(which g++)
5151
export FC=$(which gfortran)
5252
export CUDACXX=$(which nvcc)
5353
export CUDAHOSTCXX=${CXX}

0 commit comments

Comments
 (0)