Skip to content

Commit 88ac9eb

Browse files
committed
perf: try forcing compat
1 parent 9600b26 commit 88ac9eb

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

.github/workflows/benchmark_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
echo $PATH
3737
ls -l ~/.julia/bin
3838
mkdir results
39-
benchpkg ${{ steps.extract-package-name.outputs.package_name }} --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --url=${{ github.event.repository.clone_url }} --bench-on="${{github.event.repository.default_branch}}" --output-dir=results/ -s="benchmark/benchmarks.jl" --tune --add="Enzyme,Lux,Boltz,Random"
39+
benchpkg ${{ steps.extract-package-name.outputs.package_name }} --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --url=${{ github.event.repository.clone_url }} --bench-on="${{github.event.pull_request.head.sha}}" --output-dir=results/ -s="benchmark/benchmarks.jl" --tune --exeflags="-O3 --threads=auto"
4040
env:
4141
JULIA_PKG_SERVER: ""
4242
- name: Create plots from benchmarks

benchmark/Project.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[deps]
2+
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
3+
Boltz = "4544d5e4-abc5-4dea-817f-29e4c205d9c8"
4+
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
5+
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
6+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
7+
Reactant = "3c362404-f566-11ee-1572-e11a4b42c853"
8+
9+
[compat]
10+
BenchmarkTools = "1.5"
11+
Boltz = "1"
12+
Enzyme = "0.13"
13+
Lux = "1.1"
14+
Random = "1.10"
15+
Reactant = "0.2"
16+
julia = "1.10"

benchmark/benchmarks.jl

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
# To run:
2-
# using PkgBenchmark, Reactant
3-
# result = benchmarkpkg(KernelAbstractions)
4-
# export_markdown("benchmark/perf.md", result)
5-
6-
# Note: if you change this file you will need to delete an regenerate tune.json
7-
# Your "v1.x" environment needs to have BenchmarkTools and PkgBenchmark installed.
1+
if !isfile(joinpath(@__DIR__, "Project.toml"))
2+
# Assume the Project.toml wasn't activated yet
3+
@info "Installing Benchmark dependencies"
4+
import Pkg
5+
Pkg.activate(@__DIR__)
6+
Pkg.develop(Pkg.PackageSpec(path=joinpath(@__DIR__, "..")))
7+
extra_pkgs = [
8+
Pkg.PackageSpec(name="BenchmarkTools", version="1.5"),
9+
Pkg.PackageSpec(name="Boltz", version="1"),
10+
Pkg.PackageSpec(name="Lux", version="1.1"),
11+
Pkg.PackageSpec(name="Random", version="1.10"),
12+
Pkg.PackageSpec(name="Enzyme", version="0.13"),
13+
]
14+
Pkg.add(extra_pkgs)
15+
end
816

917
using BenchmarkTools
1018
using Reactant

0 commit comments

Comments
 (0)