Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow template #571

Closed
wants to merge 14 commits into from
Closed
41 changes: 41 additions & 0 deletions .github/actions/dynamic-dry-run/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Dynamic dry run template

inputs:
benchmark_name:
required: true
type: string
benchmark_mode:
required: true
type: string
benchmark_spec:
required: true
type: string
system_name:
required: true
type: string
system_spec:
required: true
type: string

runs:
using: "composite"
steps:
- name: "Dry run dynamic ${{ inputs.benchmark_name }}-${{ inputs.benchmark_mode }} on ${{ inputs.system_name }}"
shell: bash
run: |
timestamp=$(date +%s)
bn="${{ inputs.benchmark_name }}"
bm="${{ inputs.benchmark_mode }}"
benchmark="$bn-$bm-$timestamp"
sn="${{ inputs.system_name }}"
system="$sn-$timestamp"
./bin/benchpark system init --dest=$system ${{ inputs.system_spec }}
system_id=$(./bin/benchpark system id ./$system)
./bin/benchpark experiment init --dest=$benchmark ${{ inputs.benchmark_spec }}
./bin/benchpark setup ./$benchmark ./$system workspace/
. workspace/setup.sh
ramble \
--workspace-dir "workspace/$benchmark/$system_id/workspace" \
--disable-progress-bar \
--disable-logger \
workspace setup --dry-run
81 changes: 81 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -756,3 +756,84 @@ jobs:
--disable-progress-bar \
--disable-logger \
workspace setup --dry-run
dynamicdryrunexperiments:
runs-on: ubuntu-22.04
steps:
- name: Checkout Benchpark
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Add needed Python libs
run: |
pip install -r ./requirements.txt

- name: Dynamic saxpy/openmp llnl-cluster cluster=ruby compiler=intel
uses: ./.github/actions/dynamic-dry-run
with:
benchmark_name: saxpy
benchmark_mode: openmp
benchmark_spec: saxpy+openmp
system_name: ruby
system_spec: llnl-cluster cluster=ruby compiler=intel

- name: Dynamic saxpy/openmp llnl-cluster cluster=dane
uses: ./.github/actions/dynamic-dry-run
with:
benchmark_name: saxpy
benchmark_mode: openmp
benchmark_spec: saxpy+openmp
system_name: dane
system_spec: llnl-cluster cluster=dane

- name: Dynamic saxpy/openmp llnl-cluster cluster=magma
uses: ./.github/actions/dynamic-dry-run
with:
benchmark_name: saxpy
benchmark_mode: openmp
benchmark_spec: saxpy+openmp
system_name: magma
system_spec: llnl-cluster cluster=magma

- name: Dynamic saxpy/openmp aws-pcluster instance_type=hpc6a.48xlarge
uses: ./.github/actions/dynamic-dry-run
with:
benchmark_name: saxpy
benchmark_mode: openmp
benchmark_spec: saxpy+openmp
system_name: aws
system_spec: aws-pcluster instance_type=hpc6a.48xlarge

- name: Dynamic saxpy/openmp venado lanl-venado cuda=12.5 compiler=cce +gtl
uses: ./.github/actions/dynamic-dry-run
with:
benchmark_name: saxpy
benchmark_mode: openmp
benchmark_spec: saxpy+openmp
system_name: venado
system_spec: lanl-venado cuda=12.5 compiler=cce +gtl

- name: Dynamic saxpy/cuda lassen llnl-sierra cuda=10-1-243 compiler=xl
uses: ./.github/actions/dynamic-dry-run
with:
benchmark_name: saxpy
benchmark_mode: cuda
benchmark_spec: saxpy+cuda
system_name: lassen
system_spec: llnl-sierra cuda=10-1-243 compiler=xl

- name: Dynamic saxpy/cuda venado lanl-venado cuda=12.5 compiler=cce +gtl
uses: ./.github/actions/dynamic-dry-run
with:
benchmark_name: saxpy
benchmark_mode: cuda
benchmark_spec: saxpy+cuda
system_name: venado
system_spec: lanl-venado cuda=12.5 compiler=cce +gtl

- name: Dynamic saxpy/rocm tioga llnl-elcapitan rocm=5.5.1 compiler=cce ~gtl
uses: ./.github/actions/dynamic-dry-run
with:
benchmark_name: saxpy
benchmark_mode: rocm
benchmark_spec: saxpy+rocm
system_name: tioga
system_spec: llnl-elcapitan rocm=5.5.1 compiler=cce ~gtl