@@ -50,11 +50,11 @@ savefig(p_bfs, "benchmark/out/plot_bfs_results.png")
5050# Plot the speedup relative to the SuiteSparseGraphBLAS implementation
5151
5252# Get the times
53- ssgb_times = df[df. implementation.== " SuiteSparseGraphBLAS" , :time]
54- csr_gpu_times = df[df. implementation.== " GPUGraphsCSR" , :time]
55- ell_gpu_times = df[df. implementation.== " GPUGraphsELL" , :time]
56- cusparse_csr_times = df[df. implementation.== " CUSPARSE-CSR" , :time]
57- cusparse_csc_times = df[df. implementation.== " CUSPARSE-CSC" , :time]
53+ ssgb_times = df[df. implementation .== " SuiteSparseGraphBLAS" , :time]
54+ csr_gpu_times = df[df. implementation .== " GPUGraphsCSR" , :time]
55+ ell_gpu_times = df[df. implementation .== " GPUGraphsELL" , :time]
56+ cusparse_csr_times = df[df. implementation .== " CUSPARSE-CSR" , :time]
57+ cusparse_csc_times = df[df. implementation .== " CUSPARSE-CSC" , :time]
5858
5959
6060
@@ -83,9 +83,9 @@ savefig(speedup_plot, "benchmark/out/plot_spmv_speedup.png")
8383# Get the times
8484graphsjl_times = df_bfs[df_bfs. implementation .== " Graphs.jl" , :time]
8585
86- ssgb_times = df_bfs[df_bfs. implementation.== " SuiteSparseGraphBLAS" , :time]
87- csr_gpu_times = df_bfs[df_bfs. implementation.== " GPUGraphsCSR" , :time]
88- ell_gpu_times = df_bfs[df_bfs. implementation.== " GPUGraphsELL" , :time]
86+ ssgb_times = df_bfs[df_bfs. implementation .== " SuiteSparseGraphBLAS" , :time]
87+ csr_gpu_times = df_bfs[df_bfs. implementation .== " GPUGraphsCSR" , :time]
88+ ell_gpu_times = df_bfs[df_bfs. implementation .== " GPUGraphsELL" , :time]
8989
9090# Calculate the speedup
9191speedup_ssgb = graphsjl_times ./ ssgb_times
@@ -116,7 +116,7 @@ df2_bfs = DataFrame(CSV.File("benchmark/out/bfs_results_data.csv"))
116116df2_bfs[! , :time] /= 1e9 # convert ns to s
117117
118118# For each dataset, normalize the time by the time of the SuiteSparseGraphBLAS implementation
119- gb_times = df2[df2. implementation.== " CUSPARSE-CSR" , :time]
119+ gb_times = df2[df2. implementation .== " CUSPARSE-CSR" , :time]
120120gb_times_column = repeat(gb_times, inner = 4 )
121121# Normalize the time by the SuiteSparseGraphBLAS time
122122df2[! , :time] = julia_times_column ./ df2[! , :time]
@@ -136,16 +136,16 @@ p2 = @df df2 bar(
136136)
137137# Add the speedup
138138speedups = df2[! , :time]
139- if false
140- annotate!(1 , 0 , text(" $(round(speedups[1 ], digits = 2 )) x \n " , :black, 8 , :center))
141- annotate!(2 , 0 , text(" $(round(speedups[2 ], digits = 2 )) x \n " , :black, 8 , :center))
142- annotate!(3 , 0 , text(" $(round(speedups[3 ], digits = 2 )) x \n " , :black, 8 , :center))
143- annotate!(4 , 0 , text(" $(round(speedups[4 ], digits = 2 )) x \n " , :black, 8 , :center))
144- annotate!(5 , 0 , text(" $(round(speedups[5 ], digits = 2 )) x \n " , :black, 8 , :center))
145- annotate!(6 , 0 , text(" $(round(speedups[6 ], digits = 2 )) x \n " , :black, 8 , :center))
146- annotate!(7 , 0 , text(" $(round(speedups[7 ], digits = 2 )) x \n " , :black, 8 , :center))
147- annotate!(8 , 0 , text(" $(round(speedups[8 ], digits = 2 )) x \n " , :black, 8 , :center))
148- annotate!(9 , 0 , text(" $(round(speedups[9 ], digits = 2 )) x \n " , :black, 8 , :center))
139+ if false
140+ annotate!(1 , 0 , text(" $(round(speedups[1 ], digits = 2 )) x \n " , :black, 8 , :center))
141+ annotate!(2 , 0 , text(" $(round(speedups[2 ], digits = 2 )) x \n " , :black, 8 , :center))
142+ annotate!(3 , 0 , text(" $(round(speedups[3 ], digits = 2 )) x \n " , :black, 8 , :center))
143+ annotate!(4 , 0 , text(" $(round(speedups[4 ], digits = 2 )) x \n " , :black, 8 , :center))
144+ annotate!(5 , 0 , text(" $(round(speedups[5 ], digits = 2 )) x \n " , :black, 8 , :center))
145+ annotate!(6 , 0 , text(" $(round(speedups[6 ], digits = 2 )) x \n " , :black, 8 , :center))
146+ annotate!(7 , 0 , text(" $(round(speedups[7 ], digits = 2 )) x \n " , :black, 8 , :center))
147+ annotate!(8 , 0 , text(" $(round(speedups[8 ], digits = 2 )) x \n " , :black, 8 , :center))
148+ annotate!(9 , 0 , text(" $(round(speedups[9 ], digits = 2 )) x \n " , :black, 8 , :center))
149149end
150150display(p2)
151151
@@ -168,7 +168,6 @@ p2_bfs = @df df2_bfs bar(
168168 legend = :topleft,
169169 title = " BFS" ,
170170 ylim = (0 , 1 ),
171-
172171)
173172# Add the speedup
174173speedups_bfs = 1 ./ df2_bfs[! , :time]
0 commit comments