-
Notifications
You must be signed in to change notification settings - Fork 37
Argonne 2021 GPU Hackathon
Philipp Grete edited this page Apr 7, 2021
·
6 revisions
For general instruction see ThetaGPU doc.
Specifically, check the bottom of that doc if you're using bash
as there are special instructions.
- Login to one of the GPU service nodes
thetagpusn1,2
ssh thetagpusn1
- Add proxies to get data from the internet (e.g., for
wget
andgit
)
export http_proxy=http://proxy.tmi.alcf.anl.gov:3128
export https_proxy=http://proxy.tmi.alcf.anl.gov:3128
- Get CMake
export CMAKE_VERSION=3.19.6
wget -qO- http://www.cmake.org/files/v${CMAKE_VERSION:0:4}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz | tar -xz
export PATH=${PWD}/cmake-${CMAKE_VERSION}-Linux-x86_64/bin:$PATH
- Compiling needs to be done on the nodes, e.g., in an interactive session via
qsub -t 30 -n 1 -q single-gpu -A gpu_hack -I
git clone https://github.com/lanl/parthenon.git
cd parthenon
git submodule init
git submodule update
mkdir build-cuda
cd build-cuda
cmake -DCMAKE_BUILD_TYPE=Release -DPARTHENON_DISABLE_MPI=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_AMPERE80=ON -DCMAKE_CXX_COMPILER=$(pwd)/../external/Kokkos/bin/nvcc_wrapper -DPARTHENON_DISABLE_HDF5=ON -DKokkos_ARCH_ZEN=ON -DPARTHENON_ENABLE_PYTHON_MODULE_CHECK=OFF ..
Todo: potentially add python modules for test env diable omp