Skip to content

Commit d9c8f4c

Browse files
Merge pull request #1970 from CliMA/ck/fill_bench
Fix fill benchmark n-reads-writes
2 parents a7ddf98 + 3ab32c0 commit d9c8f4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/DataLayouts/benchmark_fill.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function benchmarkfill!(bm, device, data, val, name)
2424
trial = @benchmark ClimaComms.@cuda_sync $device fill!($data, $val)
2525
t_min = minimum(trial.times) * 1e-9 # to seconds
2626
nreps = length(trial.times)
27-
n_reads_writes = DataLayouts.ncomponents(data) * 2
27+
n_reads_writes = DataLayouts.ncomponents(data)
2828
push_info(
2929
bm;
3030
kernel_time_s = t_min,

test/Spaces/distributed_cuda/ddss2.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pid, nprocs = ClimaComms.init(context)
108108
end
109109
#! format: on
110110
p = @allocated Spaces.weighted_dss!(y0, dss_buffer)
111-
iamroot && @test p 8832
111+
iamroot && @test p 9088
112112

113113
#testing weighted dss on a vector field
114114
init_vectorstate(local_geometry, p) = Geometry.Covariant12Vector(1.0, -1.0)

0 commit comments

Comments
 (0)