Skip to content

Commit

Permalink
test globus (SCOREC#466) - refactor globus compute scripts
Browse files Browse the repository at this point in the history
- Moves all of the files that globus uses unto Github.
- Moves globus code to separate repository so that it can be reused.
  • Loading branch information
Angelyr authored and flagdanger committed Nov 22, 2024
1 parent 42dd756 commit 0d3aaf9
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 101 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/frontier/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash -e

module load PrgEnv-amd

branch=$1
cd /lustre/orion/phy122/scratch/castia5/globus-compute/core-test

# Core
rm build-core -rf
rm core -rf
git clone https://github.com/SCOREC/core.git
cd core && git checkout $branch && git clone https://github.com/SCOREC/pumi-meshes.git && cd -
cmake -S core -B build-core \
-DCMAKE_C_COMPILER=cc \
-DCMAKE_CXX_COMPILER=CC \
-DENABLE_ZOLTAN=OFF \
-DMPIRUN=/usr/bin/srun \
-DMPIRUN_PROCFLAG="--ntasks" \
-DIS_TESTING=True
cmake --build build-core -j 24
11 changes: 11 additions & 0 deletions .github/workflows/frontier/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

name=core

cd /lustre/orion/phy122/scratch/castia5/globus-compute/$name-test

module load PrgEnv-amd

cd build-$name
salloc --account=PHY122 --time=00:20:00 -q debug --nodes=1 --ntasks=1 --cpus-per-task=1 --gpus-per-task=1 --gpus=1 ctest
cat $PWD/Testing/Temporary/LastTest.log
19 changes: 19 additions & 0 deletions .github/workflows/globus-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Globus-Systems
on:
schedule:
# Monday 7:35 UTC or 03:35 EDT
- cron: '35 7 * * 1'

jobs:

perlmutter-test:
uses: SCOREC/github-actions/.github/workflows/globus-test.yml@main
secrets: inherit
with:
machine: "perlmutter"

frontier-test:
uses: SCOREC/github-actions/.github/workflows/globus-test.yml@main
secrets: inherit
with:
machine: "frontier"
19 changes: 19 additions & 0 deletions .github/workflows/perlmutter/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash -e

branch=$1

cd $SCRATCH/globus-compute/core-test

# core
rm build-core -rf
rm core -rf
git clone https://github.com/SCOREC/core.git
cd core && git checkout $branch && git clone https://github.com/SCOREC/pumi-meshes.git && cd -
cmake -S core -B build-core \
-DCMAKE_C_COMPILER=cc \
-DCMAKE_CXX_COMPILER=CC \
-DENABLE_ZOLTAN=OFF \
-DMPIRUN=/usr/bin/srun \
-DMPIRUN_PROCFLAG="--ntasks" \
-DIS_TESTING=True
cmake --build build-core -j 24
9 changes: 9 additions & 0 deletions .github/workflows/perlmutter/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

name=core

cd $SCRATCH/globus-compute/$name-test

cd build-$name
salloc --time 00:20:00 --constrain=gpu --qos=interactive --nodes=1 --ntasks-per-node=40 --cpus-per-task=1 --gpus=1 --account=m4564 ctest
cat $PWD/Testing/Temporary/LastTest.log
63 changes: 0 additions & 63 deletions .github/workflows/systems.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/test_on_system.py

This file was deleted.

0 comments on commit 0d3aaf9

Please sign in to comment.