Skip to content
Draft
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ install:
- git clone https://github.com/systemslab/popper /tmp/popper
- export PYTHONUNBUFFERED=1
- pip install /tmp/popper/cli
script: popper run
script: popper run -f workflows/containerized/wf.yml
7 changes: 7 additions & 0 deletions workflows/containerized/conf_host.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
engine:
name: docker
options:
privileged: True

resource_manager:
name: host
7 changes: 7 additions & 0 deletions workflows/containerized/conf_slurm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
engine:
name: docker
options:
privileged: True

resource_manager:
name: slurm
53 changes: 0 additions & 53 deletions workflows/containerized/main.workflow

This file was deleted.

2 changes: 2 additions & 0 deletions workflows/containerized/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

export GITHUB_WORKSPACE=$(pwd)

if [ ! -d "./submodules/pEVSL" ]; then
echo "Expecting ./submodules/pEVSL/ folder"
exit 1
Expand Down
1 change: 1 addition & 0 deletions workflows/containerized/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set -e
#SBATCH --time=2:00:00
#SBATCH -A TG-EAR170019

export GITHUB_WORKSPACE=$(pwd)

if [ -z "$MPI_NUM_PROCESSES" ]; then
echo "No MPI_NUM_ROCESSES variable defined"
Expand Down
5 changes: 5 additions & 0 deletions workflows/containerized/scripts/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -e

cd ./submodules/pEVSL/TESTS/Lap/
mpirun --allow-run-as-root -np 1 ./LapPLanN.ex -n 400 ./LapPLanN.ex -nx 20 -ny 20 -nz 20 -nslices 5 -a 0.6 -b 1.2
3 changes: 3 additions & 0 deletions workflows/containerized/scripts/validate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
set -e

export GITHUB_WORKSPACE=$(pwd)

cat $GITHUB_WORKSPACE/workflows/containerized/normalmodes.log | grep "relative err. " > temp.log

while read p; do
Expand Down
28 changes: 28 additions & 0 deletions workflows/containerized/wf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 1
steps:
- id: build
uses: ./workflows/containerized/actions/normalmodes
runs: ./workflows/containerized/scripts/build.sh
env:
PEVSL_MAKEFILE_IN: ./workflows/containerized/makeconf/pEVSL_mkl.in
NORMALMODES_MAKEFILE_IN: ./workflows/containerized/makeconf/NormalModes_mkl.in
NUM_BUILD_JOBS: 1

- id: test
uses: ./workflows/containerized/actions/normalmodes
runs: ./workflows/containerized/scripts/test.sh

- id: run
uses: ./workflows/containerized/actions/normalmodes
runs: ./workflows/containerized/scripts/run.sh
env:
MPI_NUM_PROCESSES: 1
INPUT_DIR: submodules/NormalModes/demos/

- id: validate
uses: popperized/bin/sh@master
runs: ./workflows/containerized/scripts/validate.sh

- id: generate vtk
uses: docker://popperized/octave:4.4
args: ./workflows/containerized/scripts/visualCmain.m
75 changes: 0 additions & 75 deletions workflows/containerless/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions workflows/containerless/main.workflow

This file was deleted.

104 changes: 0 additions & 104 deletions workflows/containerless/makeconf/NormalModes_mkl.in

This file was deleted.

Loading