@@ -18,13 +18,7 @@ using CUDA: adapt
18
18
using ThreadPinning
19
19
pinthreads (:cores )
20
20
21
- if pkgversion (NetworkDynamics) < v " 0.9.0"
22
- (isinteractive () ? includet : include)(" benchmark_models_v0.8.jl" )
23
- elseif pkgversion (NetworkDynamics) < v " 0.9.1"
24
- (isinteractive () ? includet : include)(" benchmark_models_v0.9.jl" )
25
- else
26
- (isinteractive () ? includet : include)(" benchmark_models.jl" )
27
- end
21
+ (isinteractive () ? includet : include)(" benchmark_models.jl" )
28
22
29
23
@info " Benchmark with $(Threads. nthreads ()) threads"
30
24
@@ -116,7 +110,7 @@ for k in keys(edges)
116
110
@test dx ≈ _dx
117
111
118
112
b = @be $ nd ($ dx, $ _x0, nothing , 0.0 ) seconds= SECONDS
119
- br = BenchmarkResult (b, legacy_order (nd, dx) )
113
+ br = BenchmarkResult (b, dx )
120
114
bd[" diffusion_" * k, exname, aggname, N] = br
121
115
122
116
if CUDA. functional () && iscudacompatible (execution) && iscudacompatible (nd. layer. aggregator)
@@ -134,7 +128,7 @@ for k in keys(edges)
134
128
b = @be $ nd_d ($ dx_d, $ x0_d, nothing , 0.0 ) seconds= SECONDS
135
129
# we store the original _dx in the benchmarks results because we know
136
130
# our dx_d does not have the precision
137
- br = BenchmarkResult (b, legacy_order (nd, _dx) )
131
+ br = BenchmarkResult (b, _dx)
138
132
bd[" diffusion_" * k, exname* " _cuda32" , aggname* " _cuda32" , N] = br
139
133
140
134
to = CuArray{Float64}
@@ -146,7 +140,7 @@ for k in keys(edges)
146
140
@test Vector (dx_d) ≈ _dx
147
141
148
142
b = @be $ nd_d ($ dx_d, $ x0_d, nothing , 0.0 ) seconds= SECONDS
149
- br = BenchmarkResult (b, legacy_order (nd, Vector (dx_d) ))
143
+ br = BenchmarkResult (b, Vector (dx_d))
150
144
bd[" diffusion_" * k, exname* " _cuda64" , aggname* " _cuda64" , N] = br
151
145
end
152
146
end
@@ -213,7 +207,7 @@ for f in [homogeneous, heterogeneous]
213
207
@test dx ≈ _dx
214
208
215
209
b = @be $ nd ($ dx, $ _x0, $ p, 0.0 ) seconds= SECONDS
216
- br = BenchmarkResult (b, legacy_order (nd, dx) )
210
+ br = BenchmarkResult (b, dx )
217
211
bd[" kuramoto_" * name, exname, aggname, N] = br
218
212
219
213
if CUDA. functional () && iscudacompatible (execution) && iscudacompatible (nd. layer. aggregator)
@@ -232,7 +226,7 @@ for f in [homogeneous, heterogeneous]
232
226
b = @be $ nd_d ($ dx_d, $ x0_d, $ p_d, 0.0 ) seconds= SECONDS
233
227
# we store the original _dx in the benchmarks results because we know
234
228
# our dx_d does not have the precision
235
- br = BenchmarkResult (b, legacy_order (nd, _dx) )
229
+ br = BenchmarkResult (b, _dx)
236
230
bd[" kuramoto_" * name, exname* " _cuda32" , aggname* " _cuda32" , N] = br
237
231
238
232
to = CuArray{Float64}
@@ -245,7 +239,7 @@ for f in [homogeneous, heterogeneous]
245
239
@test Vector (dx_d) ≈ _dx
246
240
247
241
b = @be $ nd_d ($ dx_d, $ x0_d, $ p_d, 0.0 ) seconds= SECONDS
248
- br = BenchmarkResult (b, legacy_order (nd, Vector (dx_d) ))
242
+ br = BenchmarkResult (b, Vector (dx_d))
249
243
bd[" kuramoto_" * name, exname* " _cuda64" , aggname* " _cuda64" , N] = br
250
244
end
251
245
end
@@ -305,7 +299,7 @@ for N in Ns
305
299
@test dx ≈ _dx
306
300
307
301
b = @be $ nd ($ dx, $ _x0, $ p, 0.0 ) seconds= SECONDS
308
- br = BenchmarkResult (b, legacy_order (nd, dx) )
302
+ br = BenchmarkResult (b, dx )
309
303
bd[" powergrid" , exname, aggname, N] = br
310
304
311
305
if CUDA. functional () && iscudacompatible (execution) && iscudacompatible (nd. layer. aggregator)
@@ -324,7 +318,7 @@ for N in Ns
324
318
b = @be $ nd_d ($ dx_d, $ x0_d, $ p_d, 0.0 ) seconds= SECONDS
325
319
# we store the original _dx in the benchmarks results because we know
326
320
# our dx_d does not have the precision
327
- br = BenchmarkResult (b, legacy_order (nd, _dx) )
321
+ br = BenchmarkResult (b, _dx)
328
322
bd[" powergrid" , exname* " _cuda32" , aggname* " _cuda32" , N] = br
329
323
330
324
to = CuArray{Float64}
@@ -337,7 +331,7 @@ for N in Ns
337
331
@test Vector (dx_d) ≈ _dx
338
332
339
333
b = @be $ nd_d ($ dx_d, $ x0_d, $ p_d, 0.0 ) seconds= SECONDS
340
- br = BenchmarkResult (b, legacy_order (nd, Vector (dx_d) ))
334
+ br = BenchmarkResult (b, Vector (dx_d))
341
335
bd[" powergrid" , exname* " _cuda64" , aggname* " _cuda64" , N] = br
342
336
end
343
337
end
0 commit comments