forked from SCOREC/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test globus (SCOREC#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.
- Loading branch information
1 parent
42dd756
commit 0d3aaf9
Showing
7 changed files
with
78 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.