Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit 017cf14

Browse files
committed
Exclude some large kernels from coverage.
1 parent 1921827 commit 017cf14

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/accumulate.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ function neutral_element(op, T)
2525
return f(T)
2626
end
2727

28+
## COV_EXCL_START
29+
2830
# partial scan of individual thread blocks within a grid
2931
# work-efficient implementation after Blelloch (1990)
3032
#
@@ -147,6 +149,8 @@ function aggregate_partial_scan(op::Function, output::CuDeviceArray,
147149
return
148150
end
149151

152+
## COV_EXCL_STOP
153+
150154
function scan!(f::Function, output::CuArray{T}, input::CuArray;
151155
dims::Integer, init=nothing, neutral=neutral_element(f, T)) where {T}
152156

src/mapreduce.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
using CuArrays: @cuindex, cudims
22

3+
## COV_EXCL_START
4+
35
function mapreducedim_kernel_serial(f, op, R, A, range)
46
I = @cuindex R
57
newrange = map((r, i) -> r === nothing ? i : r, range, I)
@@ -53,6 +55,8 @@ function mapreducedim_kernel_parallel(f, op, R::CuDeviceArray{T}, A::CuDeviceArr
5355
return
5456
end
5557

58+
## COV_EXCL_STOP
59+
5660
function Base._mapreducedim!(f, op, R::CuArray{T}, A::CuArray{T}) where {T}
5761
# the kernel as generated from `f` and `op` can require lots of registers (eg. #160),
5862
# so we need to be careful about how many threads we launch not to run out of them.

0 commit comments

Comments
 (0)