Skip to content

Commit a07787d

Browse files
committed
update CI
1 parent 49fb42b commit a07787d

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

.github/workflows/perlmutter-no-cache.yaml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ jobs:
2626
- run: |
2727
module load libfabric
2828
module list
29+
2930
mkdir -p build install
31+
3032
cd build
3133
cmake .. -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=OFF -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=$(realpath ..)/install -DPDC_ENABLE_MPI=ON -DMERCURY_DIR=$MERCURY_DIR -DCMAKE_C_COMPILER=cc -DMPI_RUN_CMD="srun -A ${{ secrets.NERSC_PERLMUTTER_PROJECT }} --qos=debug --constraint=cpu --tasks-per-node=64"
34+
3235
make -j
3336
make install
3437
- uses: actions/[email protected]
@@ -50,29 +53,13 @@ jobs:
5053
steps:
5154
- uses: actions/[email protected]
5255
- run: |
56+
cat <<EOF > .${{ github.ref }}.slurm
57+
5358
export LD_LIBRARY_PATH="$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
5459
cd ${{ github.workspace }}/no-cache/build
55-
salloc $SCHEDULER_PARAMETERS
5660
ctest -L parallel_pdc
57-
exit
5861
rm -rf ${PDC_TMPDIR} ${PDC_DATA_LOC}
5962
60-
parallel-obj:
61-
needs:
62-
- build
63-
- parallel-pdc
64-
runs-on:
65-
- self-hosted
66-
- perlmutter
67-
environment: NERSC
68-
timeout-minutes: 2880
69-
steps:
70-
- uses: actions/[email protected]
71-
- run: |
72-
export LD_LIBRARY_PATH="$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
73-
cd ${{ github.workspace }}/no-cache/build
74-
salloc $SCHEDULER_PARAMETERS
75-
ctest -L parallel_obj
76-
exit
77-
rm -rf ${PDC_TMPDIR} ${PDC_DATA_LOC}
63+
EOF
7864
65+
sbatch $SCHEDULER_PARAMETERS .${{ github.ref }}.slurm

0 commit comments

Comments
 (0)