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

Commit 1c1e82c

Browse files
authored
Merge pull request #568 from JuliaGPU/tb/coverage
Exclude some large kernels from coverage.
2 parents 0d1b6de + 666563b commit 1c1e82c

File tree

7 files changed

+18
-0
lines changed

7 files changed

+18
-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/blas/error.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CUBLASError) =
1111

1212
name(err::CUBLASError) = string(err.code)
1313

14+
## COV_EXCL_START
1415
function description(err)
1516
if err.code == CUBLAS_STATUS_SUCCESS
1617
"the operation completed successfully"
@@ -36,6 +37,7 @@ function description(err)
3637
"no description for this error"
3738
end
3839
end
40+
## COV_EXCL_STOP
3941

4042

4143
## API call wrapper

src/fft/error.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CUFFTError) =
1111

1212
name(err::CUFFTError) = string(err.code)
1313

14+
## COV_EXCL_START
1415
function description(err::CUFFTError)
1516
if err.code == CUFFT_SUCCESS
1617
"the operation completed successfully"
@@ -50,6 +51,7 @@ function description(err::CUFFTError)
5051
"no description for this error"
5152
end
5253
end
54+
## COV_EXCL_STOP
5355

5456

5557
## API call wrapper

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.

src/rand/error.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CURANDError) =
1111

1212
name(err::CURANDError) = string(err.code)
1313

14+
## COV_EXCL_START
1415
function description(err)
1516
if err.code == CURAND_STATUS_SUCCESS
1617
"generator was created successfully"
@@ -42,6 +43,7 @@ function description(err)
4243
"no description for this error"
4344
end
4445
end
46+
## COV_EXCL_STOP
4547

4648

4749
## API call wrapper

src/solver/error.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CUSOLVERError) =
1111

1212
name(err::CUSOLVERError) = string(err.code)
1313

14+
## COV_EXCL_START
1415
function description(err)
1516
if err.code == CUSOLVER_STATUS_SUCCESS
1617
"the operation completed successfully"
@@ -32,6 +33,7 @@ function description(err)
3233
"no description for this error"
3334
end
3435
end
36+
## COV_EXCL_STOP
3537

3638

3739
## API call wrapper

src/tensor/error.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CUTENSORError) =
1111

1212
name(err::CUTENSORError) = unsafe_string(cutensorGetErrorString(err))
1313

14+
## COV_EXCL_START
1415
function description(err::CUTENSORError)
1516
if err.code == CUTENSOR_STATUS_SUCCESS
1617
"the operation completed successfully"
@@ -44,6 +45,7 @@ function description(err::CUTENSORError)
4445
"no description for this error"
4546
end
4647
end
48+
## COV_EXCL_STOP
4749

4850

4951
## API call wrapper

0 commit comments

Comments
 (0)