Skip to content

Commit

Permalink
Try to fix GPU CI yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
markusbattarbee committed Jan 16, 2025
1 parent 8fbe9d2 commit 21d40db
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,44 +228,44 @@ jobs:
# path: build.log

build_testpackage_ukkoGPU:
# Build Vlasiator with testpackage flags, on the ukko cluster using
# it's nvidia gpus
runs-on: carrington
# Build Vlasiator with testpackage flags, on the ukko cluster using
# it's nvidia gpus
runs-on: carrington

steps:
- name: Clean workspace
run: |
RUN_STRING=$( cat << MORO
rm -rf libraries library-build testpackage
rm -f libraries.tar.zst testpackage_check_description.txt testpackage-output.tar.gz metrics.txt stdout.txt stderr.txt testpackage_output_variables.txt
rm -f *.xml
MORO
)
srun -M ukko bash -c "$RUN_STRING"
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: true
- name: Make clean
run: VLASIATOR_ARCH=ukko_cuda make clean
- uses: ursg/gcc-problem-matcher@master
- name: Compile vlasiator (Testpackage build w/ CUDA)
run: |
export VLASIATOR_ARCH=ukko_cuda
srun -Mukko -pgpu-oversub --cpus-per-gpu=8 --mem-per-gpu=20G --job-name CI_tp_compile --interactive --nodes=1 -n 1 -c 16 -t 1:00:0 bash -c 'module purge; module load GCC/13.2.0; module load OpenMPI/4.1.6-GCC-13.2.0 ; module load PMIx/4.2.6-GCCcore-13.2.0; module load PAPI/7.1.0-GCCcore-13.2.0; module load CUDA; export VLASIATOR_ARCH=ukko_cuda; make -j 9 testpackage; sleep 10s'
- name: Make sure the output binary is visible in lustre
uses: nick-fields/retry@v3
with:
timeout_seconds: 15
max_attempts: 3
retry_on: error
command: ls vlasiator
- name: Upload testpackage binary
uses: actions/upload-artifact@v4
with:
name: vlasiator-testpackage-gpu
path: vlasiator
if-no-files-found: error
steps:
- name: Clean workspace
run: |
RUN_STRING=$( cat << MORO
rm -rf libraries library-build testpackage
rm -f libraries.tar.zst testpackage_check_description.txt testpackage-output.tar.gz metrics.txt stdout.txt stderr.txt testpackage_output_variables.txt
rm -f *.xml
MORO
)
srun -M ukko bash -c "$RUN_STRING"
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: true
- name: Make clean
run: VLASIATOR_ARCH=ukko_cuda make clean
- uses: ursg/gcc-problem-matcher@master
- name: Compile vlasiator (Testpackage build w/ CUDA)
run: |
export VLASIATOR_ARCH=ukko_cuda
srun -Mukko -pgpu-oversub --cpus-per-gpu=8 --mem-per-gpu=20G --job-name CI_tp_compile --interactive --nodes=1 -n 1 -c 16 -t 1:00:0 bash -c 'module purge; module load GCC/13.2.0; module load OpenMPI/4.1.6-GCC-13.2.0 ; module load PMIx/4.2.6-GCCcore-13.2.0; module load PAPI/7.1.0-GCCcore-13.2.0; module load CUDA; export VLASIATOR_ARCH=ukko_cuda; make -j 9 testpackage; sleep 10s'
- name: Make sure the output binary is visible in lustre
uses: nick-fields/retry@v3
with:
timeout_seconds: 15
max_attempts: 3
retry_on: error
command: ls vlasiator
- name: Upload testpackage binary
uses: actions/upload-artifact@v4
with:
name: vlasiator-testpackage-gpu
path: vlasiator
if-no-files-found: error

build_riscv:
runs-on: risc-v
Expand Down

0 comments on commit 21d40db

Please sign in to comment.