Skip to content

Commit

Permalink
Merge pull request #48 from MolloiLab/AcceleratedKernels
Browse files Browse the repository at this point in the history
check buildkite benchmarks
  • Loading branch information
Dale-Black authored Dec 26, 2024
2 parents 8281efd + 325c466 commit f62a92c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 133 deletions.
2 changes: 1 addition & 1 deletion .buildkite/runbenchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ steps:
- "benchmarks/results/combinedbenchmarks.json"
agents:
queue: "benchmark"
timeout_in_minutes: 15
timeout_in_minutes: 15
119 changes: 0 additions & 119 deletions .buildkite/runtests.yml

This file was deleted.

20 changes: 12 additions & 8 deletions .github/workflows/Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,32 @@ permissions:
on:
pull_request:
branches:
- master
- main
paths:
- "src/**/*"
- "ext/**/*"
- "Project.toml"
- "benchmarks/**/*"
- ".buildkite/**/*"
- "Project.toml"
- ".github/Benchmark.yml"
- ".github/workflows/Benchmark.yml"
push:
branches:
- master
- main
paths:
- "src/**/*"
- "ext/**/*"
- "Project.toml"
- "benchmarks/**/*"
- ".buildkite/**/*"
- "Project.toml"
- ".github/Benchmark.yml"
- ".github/workflows/Benchmark.yml"

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
Expand All @@ -47,12 +52,11 @@ jobs:
if: ${{ steps.locate.outputs.path != '' }}
uses: benchmark-action/github-action-benchmark@v1
with:
name: DistanceTransforms Benchmarks
name: Package Benchmarks
tool: 'julia'
output-file-path: ${{ steps.locate.outputs.path }}
benchmark-data-dir-path: "benchmarks"
github-token: ${{ secrets.GITHUB_TOKEN }}
# comment-on-alert: true
comment-always: true
summary-always: true
alert-threshold: "150%"
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/aggregate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ for backend in GPU_BACKENDS
end

# Save the combined results
BenchmarkTools.save(joinpath(@__DIR__, "results", "combinedbenchmarks.json"), RESULTS)
BenchmarkTools.save(joinpath(@__DIR__, "results", "combinedbenchmarks.json"), RESULTS)
2 changes: 1 addition & 1 deletion benchmarks/runbenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ filename = BENCHMARK_GROUP == "CPU" ?
string(BENCHMARK_GROUP, "benchmarks.json")

BenchmarkTools.save(joinpath(filepath, filename), median(results))
@info "Saved results to $(joinpath(filepath, filename))"
@info "Saved results to $(joinpath(filepath, filename))"
9 changes: 6 additions & 3 deletions benchmarks/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ elseif BENCHMARK_GROUP == "oneAPI"
end

function setup_benchmarks(suite::BenchmarkGroup, backend::String, num_cpu_threads::Int64)
sizes_2D = [2^i for i in 3:12]
sizes_3D = [2^i for i in 0:8]
# sizes_2D = [2^i for i in 3:12]
# sizes_3D = [2^i for i in 0:8]

# sizes_2D = [2^i for i in 3:4]
# sizes_3D = [2^i for i in 0:1]

if backend == "CPU"
# 2D benchmarks
Expand Down Expand Up @@ -127,4 +130,4 @@ function setup_benchmarks(suite::BenchmarkGroup, backend::String, num_cpu_thread
else
@error "Unknown backend: $backend"
end
end
end

0 comments on commit f62a92c

Please sign in to comment.