Skip to content

Optimize run_spin_precession! and run_spin_excitation! for CPU #74

Optimize run_spin_precession! and run_spin_excitation! for CPU

Optimize run_spin_precession! and run_spin_excitation! for CPU #74

Workflow file for this run

name: Benchmarks
permissions:
contents: write # contents permission to update benchmark contents in gh-pages branch
statuses: read
deployments: write # deployments permission to deploy GitHub pages website
on:
pull_request:
branches:
- master
paths:
- "KomaMRICore/src/**/*"
- "KomaMRICore/ext/**/*"
- "KomaMRICore/Project.toml"
- "KomaMRIBase/src/**/*"
- "KomaMRIBase/Project.toml"
- "benchmarks/**/*"
- ".buildkite/**/*"
- "Project.toml"
push:
branches:
- master
paths:
- "KomaMRICore/src/**/*"
- "KomaMRICore/ext/**/*"
- "KomaMRICore/Project.toml"
- "KomaMRIBase/src/**/*"
- "KomaMRIBase/Project.toml"
- "benchmarks/**/*"
- ".buildkite/**/*"
- "Project.toml"
jobs:
benchmark:
if: ${{ !contains(github.event.head_commit.message, '[skip benchmarks]') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Buildkite Artifacts
id: download
uses: EnricoMi/download-buildkite-artifact-action@v1
with:
buildkite_token: ${{ secrets.BUILDKITE_TOKEN }}
ignore_build_states: blocked,canceled,skipped,not_run,failed
ignore_job_states: timed_out,failed
output_path: artifacts
- name: Locate Benchmarks Artifact
id: locate
if: ${{ steps.download.outputs.download-state == 'success' }}
run: echo "path=$(find artifacts -type f -name combinedbenchmarks.json 2>/dev/null)" >> $GITHUB_OUTPUT
- name: Upload Benchmark Results
if: ${{ steps.locate.outputs.path != '' }}
uses: benchmark-action/github-action-benchmark@v1
with:
name: KomaMRI Benchmarks
tool: 'julia'
output-file-path: ${{ steps.locate.outputs.path }}
benchmark-data-dir-path: "benchmarks"
summary-always: true # I think this doesn't work on PRs
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-always: true
alert-threshold: "150%"
fail-on-alert: false
auto-push: ${{ github.event_name != 'pull_request' }}