Skip to content

Commit

Permalink
Try fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Nov 8, 2024
1 parent 61272d8 commit 92e8acb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .buildkite/gpu_pipeline/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ steps:
--config_file ${GPU_CONFIG_PATH}target_gpu_implicit_baroclinic_wave.yml
--job_id target_gpu_implicit_baroclinic_wave
nsys stats --report cuda_gpu_trace report.nsys-rep --output target_gpu_implicit_baroclinic_wave/output_active/ --format csv
nsys stats --report cuda_gpu_trace target_gpu_implicit_baroclinic_wave/output_active/report.nsys-rep --output target_gpu_implicit_baroclinic_wave/output_active/ --format csv
julia --project=.buildkite/analysis .buildkite/nsight_analysis.jl --out_dir target_gpu_implicit_baroclinic_wave/output_active/
artifact_paths: "target_gpu_implicit_baroclinic_wave/output_active/*"
env:
Expand Down
12 changes: 7 additions & 5 deletions .buildkite/nsight_analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ output_dir = get_params()
@time "Load CSV file" begin
if !@isdefined(data_and_init)
data_and_init = cd(output_dir) do
CSV.read("report_cuda_gpu_trace.csv", DataFrame)
CSV.read("_cuda_gpu_trace.csv", DataFrame)
end
end
end
Expand Down Expand Up @@ -53,7 +53,9 @@ function filter_out_initialization(
n -> occursin("CUDA memcpy Host-to-Device", n),
data[!, "Name"],
)
data = data[(last_Host_to_Device + 1):end, :]
if !isnothing(last_Host_to_Device)
data = data[(last_Host_to_Device + 1):end, :]
end

# filter until maximum kernel duration is in the
# distribution of the remaining kernels:
Expand Down Expand Up @@ -176,10 +178,10 @@ function unicode_barchart(data)
N = length(data[:, "Name"])
@info "Statistics across $N total kernels"

sorted_barplot(names, bar_data; title = "Kernel duration percentage")
sorted_barplot(names, n_kernels; title = "Number of kernels")
sorted_barplot(names, bar_data; title = "Kernel duration percentage")
sorted_barplot(names, n_kernels; title = "Number of kernels")
sorted_barplot(
names,
names,
average_kernel_cost;
title = "Average kernel duration (μs)",
)
Expand Down

0 comments on commit 92e8acb

Please sign in to comment.