Skip to content

Commit 3881f05

Browse files
committed
update CI
1 parent d31e87e commit 3881f05

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

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

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
environment: NERSC
1919
timeout-minutes: 2880
2020
env:
21-
PDC_BUILD_PATH: "${{ github.workspace }}/build"
22-
PDC_INSTALL_PATH: "${{ github.workspace }}/install"
21+
PDC_BUILD_PATH: "${{ github.workspace }}/${{ github.run_id }}/build"
22+
PDC_INSTALL_PATH: "${{ github.workspace }}/${{ github.run_id }}/install"
2323
SCHEDULER_PARAMETERS: "-A ${{ secrets.NERSC_PERLMUTTER_PROJECT }} --qos=debug --constraint=cpu --tasks-per-node=64 -N 1 -t 00:30:00"
2424
MERCURY_DIR: "/global/cfs/cdirs/${{ secrets.NERSC_PERLMUTTER_PROJECT }}/pdc-perlmutter/mercury/install"
2525
steps:
@@ -31,9 +31,8 @@ jobs:
3131
echo "MERCURY_DIR = $MERCURY_DIR"
3232
module load libfabric
3333
module list
34-
echo "PATH = ${{github.workspace}}/perlmutter/no-cache"
35-
mkdir -p ${PDC_BUILD_PATH}/perlmutter/no-cache
36-
cd ${PDC_BUILD_PATH}/perlmutter/no-cache
34+
mkdir -p ${PDC_BUILD_PATH}/no-cache
35+
cd ${PDC_BUILD_PATH}/no-cache
3736
cmake ../../.. -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=OFF -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=$PDC_DIR -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" -DCMAKE_INSTALL_PREFIX=${PDC_INSTALL_PATH}/perlmutter/no-cache
3837
make -j
3938
make install
@@ -42,8 +41,7 @@ jobs:
4241
with:
4342
name: "${{ github.job }}"
4443
path: |-
45-
${PDC_BUILD_PATH}/perlmutter/no-cache
46-
${PDC_INSTALL_PATH}/perlmutter/no-cache
44+
${{ github.workspace }}/${{ github.run_id }}
4745
4846
perlmutter-no-cache-parallel-pdc:
4947
needs: perlmutter-no-cache-build
@@ -65,10 +63,11 @@ jobs:
6563
fetch-depth: 20
6664
lfs: true
6765
- uses: actions/[email protected]
68-
- run: export LD_LIBRARY_PATH="$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
69-
- run: cd ${PDC_BUILD_PATH}/perlmutter/no-cache
70-
- run: ctest -L parallel_pdc
71-
- run: rm -rf ${PDC_TMPDIR} ${PDC_DATA_LOC}
66+
- run: |
67+
export LD_LIBRARY_PATH="$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
68+
cd ${PDC_BUILD_PATH}/perlmutter/no-cache
69+
ctest -L parallel_pdc
70+
rm -rf ${PDC_TMPDIR} ${PDC_DATA_LOC}
7271
7372
perlmutter-no-cache-parallel-obj:
7473
needs:

0 commit comments

Comments
 (0)