Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions perf/runbenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ macro async_benchmarkable(ex...)
end
end

if !@isdefined(BENCHOUT)
BENCHOUT = "benchmarkresults.json"
end

# before anything else, run latency benchmarks. these spawn subprocesses, so we don't want
# to do so after regular benchmarks have caused the memory allocator to reserve memory.
@info "Running latency benchmarks"
latency_results = include("latency.jl")

SUITE = BenchmarkGroup()
SUITE = BenchmarkGroup([BENCHOUT])

include("cuda.jl")
include("kernel.jl")
Expand Down Expand Up @@ -50,4 +54,4 @@ results["latency"] = latency_results
results["integration"] = integration_results

# write out the results
BenchmarkTools.save("benchmarkresults.json", median(results))
BenchmarkTools.save(BENCHOUT, median(results))