-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add saxpy ci run * Write Ramble and Spack to persistent env * Explicitly call out ramble and spack environment modifications * Fix PATH format in env * Fix argument positioning in ramble execuiton * Add gfortran to ubuntu image as system dependency * sudo make me a sandwich * use long version of parameters * Add debug step to check what compilers are on host * Remove gcc-12 and gcc-13 from the runner * cd to workspace dir for each stage * Enforce running on a single node * Add limit to number of ranks in addition to nodes * Limit to a single process per node * add oversubscribe * Add binary cache to speed up CI * fix oci-username parameter * activate environment as part of buildcache push * Provide specs to binary cache push cmd * Uncomment conditional for uploading to CI buildcache --------- Co-authored-by: Stephanie Brink <[email protected]>
- Loading branch information
Showing
3 changed files
with
65 additions
and
1 deletion.
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
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,52 @@ | ||
name: Run Benchpark and Simple Benchmark Suite | ||
on: | ||
# This Workflow can be triggered manually | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
saxpy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Remove gcc > 12 # to prevent Spack from picking a gcc without gfortan | ||
run: | | ||
sudo apt-get remove -y gcc-13 | ||
- name: Checkout Benchpark | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
|
||
- name: Build Saxpy Workspace | ||
run: | | ||
./bin/benchpark setup saxpy/openmp x86 workspace/ | ||
- name: Setup Ramble & Spack | ||
run: | | ||
. workspace/saxpy/openmp/x86/spack/share/spack/setup-env.sh | ||
. workspace/saxpy/openmp/x86/ramble/share/ramble/setup-env.sh | ||
spack mirror add ci-buildcache oci://ghcr.io/llnl/benchpark-binary-cache | ||
env | grep SPACK >> "$GITHUB_ENV" | ||
env | grep SPACK >> "$GITHUB_ENV" | ||
echo "PATH=$PATH" >> "$GITHUB_ENV" | ||
- name: Setup Saxpy Workspace | ||
working-directory: ./workspace/saxpy/openmp/x86/workspace/ | ||
run: | | ||
ramble --workspace-dir . --disable-progress-bar --disable-logger workspace setup | ||
- name: Run Saxpy Experiments | ||
working-directory: ./workspace/saxpy/openmp/x86/workspace/ | ||
run: | | ||
ramble -c variables:n_nodes:1 -c variables:n_ranks:1 --workspace-dir . --disable-progress-bar --disable-logger on | ||
- name: Analyze Saxpy Results | ||
working-directory: ./workspace/saxpy/openmp/x86/workspace/ | ||
run: | | ||
ramble --workspace-dir . --disable-progress-bar --disable-logger workspace analyze | ||
- name: Upload Binaries to CI Cache | ||
if: github.ref == 'refs/heads/develop' | ||
run: | | ||
spack mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" ci-buildcache | ||
spack buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:22.04 --unsigned --update-index ci-buildcache $(spack find --format '/{hash}') |
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