@@ -53,6 +53,7 @@ const allowed_names =
5353 with_cu_prof::Symbol = :bfrofile, # [:bprofile, :profile]
5454 trace::Bool = false,
5555 crop::Bool = false,
56+ hcrop::Union{Nothing, Int} = nothing,
5657 only::Union{Nothing, Vector{String}} = nothing,
5758 )
5859
@@ -62,6 +63,7 @@ Benchmark a DistributedODEIntegrator given:
6263 - `with_cu_prof`, `:profile` or `:bprofile`, to call `CUDA.@profile` or `CUDA.@bprofile` respectively.
6364 - `trace`, Bool passed to `CUDA.@profile` (see CUDA docs)
6465 - `crop`, Bool indicating whether or not to crop the `CUDA.@profile` printed table.
66+ - `hcrop`, Number of horizontal characters to include in the table before cropping.
6567 - `only, list of functions to benchmarks (benchmark all by default)
6668
6769`only` may contain:
@@ -81,6 +83,7 @@ function CTS.benchmark_step(
8183 with_cu_prof:: Symbol = :bprofile ,
8284 trace:: Bool = false ,
8385 crop:: Bool = false ,
86+ hcrop:: Union{Nothing, Int} = nothing ,
8487 only:: Union{Nothing, Vector{String}} = nothing ,
8588)
8689 (; u, p, t, dt, sol, alg) = integrator
@@ -96,7 +99,7 @@ function CTS.benchmark_step(
9699 @. X = u
97100 @. Xlim = u
98101 trials₀ = OrderedCollections. OrderedDict ()
99- kwargs = (; device, with_cu_prof, trace, crop)
102+ kwargs = (; device, with_cu_prof, trace, crop, hcrop )
100103# ! format: off
101104 maybe_push! (trials₀, " Wfact" , wfact_fun (integrator), (W, u, p, dt, t), kwargs, only)
102105 maybe_push! (trials₀, " ldiv!" , LA. ldiv!, (X, W, u), kwargs, only)
0 commit comments