Skip to content

Commit 0191626

Browse files
authored
test globus (#466) - refactor globus compute scripts
- Moves all of the files that globus uses unto Github. - Moves globus code to separate repository so that it can be reused.
1 parent 2234096 commit 0191626

File tree

8 files changed

+79
-102
lines changed

8 files changed

+79
-102
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash -e
2+
3+
module load PrgEnv-amd
4+
5+
branch=$1
6+
cd /lustre/orion/phy122/scratch/castia5/globus-compute/core-test
7+
8+
# Core
9+
rm build-core -rf
10+
rm core -rf
11+
git clone https://github.com/SCOREC/core.git
12+
cd core && git checkout $branch && git clone https://github.com/SCOREC/pumi-meshes.git && cd -
13+
cmake -S core -B build-core \
14+
-DCMAKE_C_COMPILER=cc \
15+
-DCMAKE_CXX_COMPILER=CC \
16+
-DENABLE_ZOLTAN=OFF \
17+
-DMPIRUN=/usr/bin/srun \
18+
-DMPIRUN_PROCFLAG="--ntasks" \
19+
-DIS_TESTING=True
20+
cmake --build build-core -j 24

.github/workflows/frontier/run.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
name=core
4+
5+
cd /lustre/orion/phy122/scratch/castia5/globus-compute/$name-test
6+
7+
module load PrgEnv-amd
8+
9+
cd build-$name
10+
salloc --account=PHY122 --time=00:20:00 -q debug --nodes=1 --ntasks=1 --cpus-per-task=1 --gpus-per-task=1 --gpus=1 ctest
11+
cat $PWD/Testing/Temporary/LastTest.log

.github/workflows/globus-test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Globus-Systems
2+
on:
3+
schedule:
4+
# Monday 7:35 UTC or 03:35 EDT
5+
- cron: '35 7 * * 1'
6+
7+
jobs:
8+
9+
perlmutter-test:
10+
uses: SCOREC/github-actions/.github/workflows/globus-test.yml@main
11+
secrets: inherit
12+
with:
13+
machine: "perlmutter"
14+
15+
frontier-test:
16+
uses: SCOREC/github-actions/.github/workflows/globus-test.yml@main
17+
secrets: inherit
18+
with:
19+
machine: "frontier"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -e
2+
3+
branch=$1
4+
5+
cd $SCRATCH/globus-compute/core-test
6+
7+
# core
8+
rm build-core -rf
9+
rm core -rf
10+
git clone https://github.com/SCOREC/core.git
11+
cd core && git checkout $branch && git clone https://github.com/SCOREC/pumi-meshes.git && cd -
12+
cmake -S core -B build-core \
13+
-DCMAKE_C_COMPILER=cc \
14+
-DCMAKE_CXX_COMPILER=CC \
15+
-DENABLE_ZOLTAN=OFF \
16+
-DMPIRUN=/usr/bin/srun \
17+
-DMPIRUN_PROCFLAG="--ntasks" \
18+
-DIS_TESTING=True
19+
cmake --build build-core -j 24
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
name=core
4+
5+
cd $SCRATCH/globus-compute/$name-test
6+
7+
cd build-$name
8+
salloc --time 00:20:00 --constrain=gpu --qos=interactive --nodes=1 --ntasks-per-node=40 --cpus-per-task=1 --gpus=1 --account=m4564 ctest
9+
cat $PWD/Testing/Temporary/LastTest.log

.github/workflows/systems.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/test_on_system.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif()
66
# This is the top level CMake file for the SCOREC build
77
cmake_minimum_required(VERSION 3.8)
88

9-
project(SCOREC VERSION 2.2.9 LANGUAGES CXX C)
9+
project(SCOREC VERSION 2.2.10 LANGUAGES CXX C)
1010

1111
include(cmake/bob.cmake)
1212
include(cmake/xsdk.cmake)

0 commit comments

Comments
 (0)