From 5144ff3bba0f3b0d8ee1a94bed085e634fee9099 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 23 Sep 2026 15:15:24 +0200 Subject: [PATCH] Stop excluding device code from coverage GPUCompiler now records line coverage of device code when compiling it (JuliaGPU/GPUCompiler.jl#844, in every 2.x release), so kernels no longer show up as uncovered. Drop the COV_EXCL markers around device code and the src/device codecov ignore, so reports show which device code the tests actually compile. Markers around host code that tests can't reach, like the error description tables, stay. --- .codecov.yml | 1 - src/kernels/mapreduce.jl | 4 ---- 2 files changed, 5 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 30da5c001..7e4a24fc9 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,7 +1,6 @@ coverage: ignore: - "src/*/lib*.jl" - - "src/device" - "docs/" status: patch: diff --git a/src/kernels/mapreduce.jl b/src/kernels/mapreduce.jl index 61e863761..cae6b9e41 100644 --- a/src/kernels/mapreduce.jl +++ b/src/kernels/mapreduce.jl @@ -1,5 +1,3 @@ -## COV_EXCL_START - # TODO # - serial version for lower latency # - group-stride loop to delay need for second kernel launch @@ -81,8 +79,6 @@ function partial_mapreduce_device(f, op, neutral, Rreduce, Rother, R, As...) return end -## COV_EXCL_STOP - function GPUArrays.mapreducedim!( f::F, op::OP, R::AnyROCArray{T}, A::Union{AbstractArray,Broadcast.Broadcasted}; init=nothing,