Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbez committed Dec 10, 2024
1 parent c6f94ca commit f2b558e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/perlmutter-no-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ concurrency:
env:
GOOGLE_CREDENTIALS: "${{ secrets.GOOGLE_CREDENTIALS }}"
GOOGLE_SPREADSHEET_ID: "${{ secrets.GOOGLE_SPREADSHEET_ID }}"
PDC_BUILD_PATH: "${{ github.workspace }}/${{ github.run_id }}"
PDC_PATH: "${{ github.workspace }}/${{ github.run_id }}"
PDC_BUILD_PATH: "${{ github.workspace }}/${{ github.run_id }}/build"
PDC_INSTALL_PATH: "${{ github.workspace }}/${{ github.run_id }}/install"
PDC_TMPDIR: "${{ github.workspace }}/${{ github.run_id }}/pdc-tmp-paralell-pdc"
PDC_DATA_LOC: "${{ github.workspace }}/${{ github.run_id }}/pdc-data-paralell-pdc"
SCHEDULER_PARAMETERS: "-A ${{ secrets.NERSC_PERLMUTTER_PROJECT }} --qos=debug --constraint=cpu --tasks-per-node=64 -N 1 -t 00:30:00"
Expand All @@ -25,23 +27,21 @@ jobs:
steps:
- uses: actions/checkout@v4.1.0
with:
fetch-depth: 20
lfs: true
path: ${PDC_PATH}
- run: |
echo "MERCURY_DIR = $MERCURY_DIR"
module load libfabric
module list
mkdir -p ${PDC_BUILD_PATH}/build ${PDC_BUILD_PATH}/install
cd ${PDC_BUILD_PATH}/build
cmake ../.. -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=OFF -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=${PDC_BUILD_PATH}/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"
mkdir -p ${PDC_BUILD_PATH} ${PDC_INSTALL_PATH}
cd ${PDC_BUILD_PATH}
cmake ../.. -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=OFF -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=${PDC_INSTALL_PATH} -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"
make -j
- uses: actions/upload-artifact@v4.1.0
if: success()
with:
name: "${{ github.job }}"
path: |
${{ github.workspace }}/${{ github.run_id }}/build
${{ github.workspace }}/${{ github.run_id }}/install
${{ github.workspace }}/${{ github.run_id }}
parallel-pdc:
needs:
Expand All @@ -62,7 +62,7 @@ jobs:
${{ github.workspace }}/${{ github.run_id }}
- run: |
export LD_LIBRARY_PATH="$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
cd ${PDC_BUILD_PATH}/install
cd ${PDC_INSTALL_PATH}
ctest -L parallel_pdc
rm -rf ${PDC_TMPDIR} ${PDC_DATA_LOC}
Expand All @@ -86,7 +86,7 @@ jobs:
${{ github.workspace }}/${{ github.run_id }}
- run: |
export LD_LIBRARY_PATH="$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
cd ${PDC_BUILD_PATH}/build
cd ${PDC_INSTALL_PATH}
ctest -L parallel_obj
rm -rf ${PDC_TMPDIR} ${PDC_DATA_LOC}

0 comments on commit f2b558e

Please sign in to comment.