Skip to content

Commit

Permalink
manually log
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale-Black committed Jan 22, 2025
1 parent 300ddcf commit 80d5f1d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions benchmarks/runbenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,18 @@ filename = BENCHMARK_GROUP == "CPU" ?
BenchmarkTools.save(joinpath(filepath, filename), median(results))
@info "Saved results to $(joinpath(filepath, filename))"

# Ensure memory info file is also uploaded
# Handle memory info
if BENCHMARK_GROUP != "CPU"
memory_filename = "$(BENCHMARK_GROUP)_memory_info.json"
@info "Memory info saved to $(joinpath(filepath, memory_filename))"
memory_filepath = joinpath(filepath, memory_filename)

# Print memory info to console for manual backup
if isfile(memory_filepath)
memory_data = JSON.parsefile(memory_filepath)
@info "Memory Info for $BENCHMARK_GROUP" memory_data
end

# Try to upload both files
run(`buildkite-agent artifact upload "benchmarks/results/$(filename)"`)
run(`buildkite-agent artifact upload "benchmarks/results/$(memory_filename)"`)
end

0 comments on commit 80d5f1d

Please sign in to comment.