#!/bin/sh set -ex sudo pacman -Syu --no-confirm # You can use ninja or make # I am using ninja because it is faster than make sudo pacman -S --no-confirm cuda cuda-tools git openmpi hdf5-openmpi gcc11 gcc11-libs ninja git clone https://github.com/parthenon-hpc-lab/athenapk --recurse-submodules cd athenapk curl -fsOSL https://gist.githubusercontent.com/tbhaxor/2772c2c8726a56cf2719e0be259817a7/raw/4a322beef168fb521d637811da24d1f4fb304982/ArchMachineConfig.cmake # You can omit "-G Ninja" to use make cmake -Bbuild -DMACHINE_CFG=ArchMachineConfig.cmake -G Ninja cmake --build build -- -j $(nproc) # (Optional) if you want install the athenaPK globally sudo install -g root -o root -m=0755 -s build/bin/athenaPK /usr/local/bin