1+ #! /bin/bash -e
2+
3+ branch=$1
4+
5+ cd $SCRATCH /globus-compute/pcms-test
6+
7+ module load cray-fftw
8+
9+ # # kokkos
10+ # rm build-kokkos -rf
11+ # # rm kokkos -rf
12+ # git clone -b 4.2.00 https://github.com/kokkos/kokkos.git
13+ # cmake -S kokkos -B build-kokkos \
14+ # -DCMAKE_INSTALL_PREFIX=build-kokkos/install \
15+ # -DCMAKE_BUILD_TYPE="Release" \
16+ # -DCMAKE_CXX_COMPILER=$PWD/kokkos/bin/nvcc_wrapper \
17+ # -DKokkos_ARCH_AMPERE80=ON \
18+ # -DKokkos_ENABLE_SERIAL=ON \
19+ # -DKokkos_ENABLE_OPENMP=off \
20+ # -DKokkos_ENABLE_CUDA=on \
21+ # -DKokkos_ENABLE_CUDA_LAMBDA=on \
22+ # -DKokkos_ENABLE_CUDA_CONSTEXPR=on \
23+ # -DKokkos_ENABLE_DEBUG=off
24+ # cmake --build build-kokkos -j 24 --target install
25+
26+ # # ADIOS2
27+ # rm build-ADIOS2 -rf
28+ # # rm ADIOS2 -rf
29+ # git clone git@github.com:ornladios/ADIOS2.git
30+ # cmake -S ADIOS2/ -B build-ADIOS2 \
31+ # -DCMAKE_INSTALL_PREFIX=build-ADIOS2/install \
32+ # -DADIOS2_USE_CUDA=on \
33+ # -DCMAKE_BUILD_TYPE=Release \
34+ # -DCMAKE_CXX_COMPILER=CC \
35+ # -DCMAKE_C_COMPILER=cc
36+ # cmake --build build-ADIOS2 --target install -j8
37+
38+ # # perfstubs
39+ # rm build-perfstubs -rf
40+ # # rm perfstubs -rf
41+ # git clone git@github.com:UO-OACISS/perfstubs.git
42+ # cmake -S perfstubs -B build-perfstubs \
43+ # -DCMAKE_CXX_COMPILER=CC \
44+ # -DCMAKE_C_COMPILER=cc \
45+ # -DCMAKE_INSTALL_PREFIX=build-perfstubs/install
46+ # cmake --build build-perfstubs -j2 --target install
47+
48+ # # redev
49+ # rm build-redev -rf
50+ # # rm redev -rf
51+ # git clone git@github.com:SCOREC/redev.git
52+ # cmake -S redev -B build-redev \
53+ # -DCMAKE_CXX_COMPILER=CC \
54+ # -DCMAKE_C_COMPILER=cc \
55+ # -DMPIEXEC_EXECUTABLE=`which srun` \
56+ # -DCMAKE_BUILD_TYPE=Release \
57+ # -DCMAKE_INSTALL_PREFIX=build-redev/install \
58+ # -Dperfstubs_DIR=$PWD/build-perfstubs \
59+ # -DADIOS2_ROOT=build-ADIOS2/install
60+ # cmake --build build-redev -j2 --target install
61+
62+ # # omega_h
63+ # rm build-omega_h -rf
64+ # # rm omega_h -rf
65+ # git clone git@github.com:SCOREC/omega_h.git
66+ # cmake -S omega_h -B build-omega_h \
67+ # -DCMAKE_INSTALL_PREFIX=build-omega_h/install \
68+ # -DCMAKE_BUILD_TYPE=Release \
69+ # -DBUILD_SHARED_LIBS=off \
70+ # -DOmega_h_USE_Kokkos=ON \
71+ # -DOmega_h_USE_CUDA=on \
72+ # -DOmega_h_CUDA_ARCH=80 \
73+ # -DOmega_h_USE_MPI=on \
74+ # -DMPIEXEC_EXECUTABLE=srun \
75+ # -DBUILD_TESTING=off \
76+ # -DCMAKE_C_COMPILER=cc \
77+ # -DCMAKE_CXX_COMPILER=CC \
78+ # -DKokkos_PREFIX=build-kokkos/install/lib64/cmake
79+ # cmake --build build-omega_h -j24 --target install
80+
81+ # # Catch2
82+ # rm build-Catch2 -rf
83+ # # rm Catch2 -rf
84+ # git clone https://github.com/catchorg/Catch2
85+ # cmake -S Catch2 -B build-Catch2 \
86+ # -DCMAKE_INSTALL_PREFIX=$PWD/build-Catch2/install \
87+ # -DCMAKE_CXX_COMPILER=CC
88+ # cmake --build build-Catch2 -j2 --target install
89+
90+ # pcms
91+ rm pcms -rf
92+ rm build-pcms -rf
93+ rm pcms_testcases -rf
94+
95+ git clone git@github.com:jacobmerson/pcms_testcases.git
96+ git clone https://github.com/SCOREC/pcms.git
97+ cd pcms && git checkout $branch && cd -
98+
99+ cmake -S pcms -B build-pcms \
100+ -DCMAKE_C_COMPILER=cc \
101+ -DCMAKE_CXX_COMPILER=CC \
102+ -DCMAKE_BUILD_TYPE=Release \
103+ -DPCMS_TIMEOUT=0 \
104+ -Dperfstubs_DIR=$PWD /build-perfstubs \
105+ -Dredev_DIR=$PWD /build-redev/install/lib64/cmake/redev \
106+ -DOmega_h_DIR=$PWD /build-omega_h/install/lib64/cmake/Omega_h/ \
107+ -DKokkos_DIR=$PWD /build-kokkos/install/lib64/cmake/Kokkos/ \
108+ -DCatch2_DIR=$PWD /build-Catch2/install/lib64/cmake/Catch2/ \
109+ -DPCMS_TEST_DATA_DIR=$PWD /pcms_testcases
110+ cmake --build build-pcms -j8
0 commit comments