experiments #1

Merged
rubydragon merged 39 commits from experiments into main 2024-05-08 12:03:28 +02:00
19 changed files with 14 additions and 9 deletions
Showing only changes of commit f3dab45f31 - Show all commits

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -20,10 +20,10 @@ df = CSV.read(input_file, DataFrame)
df2 = CSV.read(input_file_onesided, DataFrame)
df_filt = filter(:process_name => x -> proc_to_n(x) >= 1, df)
df_filt = filter(:process_name => x -> proc_to_n(x) >= 1 && proc_to_n(x) <= 7, df)
df_filt.process_size = @. proc_to_n(df_filt.process_name)
df_filt2 = filter(:process_name => x -> proc_to_n(x) >= 1, df2)
df_filt2 = filter(:process_name => x -> proc_to_n(x) >= 1 && proc_to_n(x) <= 7, df2)
df_filt2.process_size = @. proc_to_n(df_filt2.process_name)

View File

@ -49,6 +49,11 @@ for process in processes
df_filt = filter(:process => x -> x == process, df)
df_filt_gpu = filter(:process => x -> x == process, df_gpu)
# add dummy factors to get the numbers in similar orders of magnitude
df_filt.cumulative_optimization_time = df_filt.cumulative_optimization_time .* 1e4
df_filt_gpu.cumulative_optimization_time = df_filt_gpu.cumulative_optimization_time .* 1e4
df_filt_gpu.gpu_t = df_filt_gpu.gpu_t .* 1e1
cpu = !isempty(df_filt)
gpu = !isempty(df_filt_gpu)
@ -58,10 +63,10 @@ for process in processes
@df df_filt scatter(
:operations,
:cumulative_optimization_time,
label = "Cumulative Optimization Time (s)",
label = "Cumulative Optimization Time (x10000) (s)",
markersize = 4,
)
ymax = max(df_filt[!, :cpu_st_t]..., df_filt[!, :cumulative_optimization_time]...) * 1.1
ymax = max(df_filt[!, :cpu_st_t]..., df_filt[!, :cumulative_optimization_time]...) * 1.1 * 1e4
@df df_filt scatter!(
:operations,
:cpu_st_t,
@ -76,16 +81,16 @@ for process in processes
@df df_filt_gpu scatter(
:operations,
:cumulative_optimization_time,
label = "Cumulative Optimization Time (s)",
label = "Cumulative Optimization Time (x10000) (s)",
markersize = 4,
)
ymax = max(df_filt_gpu[!, :gpu_t]..., df_filt_gpu[!, :cumulative_optimization_time]...) * 1.1
ymax = max(df_filt_gpu[!, :gpu_t]..., df_filt_gpu[!, :cumulative_optimization_time]...) * 1.1 * 1e4
end
@df df_filt_gpu scatter!(
:operations,
:gpu_t,
label = "GPU Execution (s)",
label = "GPU Execution (x10) (s)",
markersize = 4,
markershape = :diamond,
)
@ -95,8 +100,8 @@ for process in processes
plot!(
title = ("$(beautify_title(process)) Reduction Progression ($(n_inputs) Inputs)"),
xscale = :linear,
yscale = :linear,
ylim = (0, ymax),
yscale = :log10,
#ylim = (0, ymax),
legend = :outerbottom,
minorgrid = true,
xticks = :process_size,

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.