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

Exclude some large kernels from coverage. #568

Merged
merged 2 commits into from
Jan 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/accumulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ function neutral_element(op, T)
return f(T)
end

## COV_EXCL_START

# partial scan of individual thread blocks within a grid
# work-efficient implementation after Blelloch (1990)
#
Expand Down Expand Up @@ -147,6 +149,8 @@ function aggregate_partial_scan(op::Function, output::CuDeviceArray,
return
end

## COV_EXCL_STOP

function scan!(f::Function, output::CuArray{T}, input::CuArray;
dims::Integer, init=nothing, neutral=neutral_element(f, T)) where {T}

Expand Down
2 changes: 2 additions & 0 deletions src/blas/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CUBLASError) =

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

## COV_EXCL_START
function description(err)
if err.code == CUBLAS_STATUS_SUCCESS
"the operation completed successfully"
Expand All @@ -36,6 +37,7 @@ function description(err)
"no description for this error"
end
end
## COV_EXCL_STOP


## API call wrapper
Expand Down
2 changes: 2 additions & 0 deletions src/fft/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CUFFTError) =

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

## COV_EXCL_START
function description(err::CUFFTError)
if err.code == CUFFT_SUCCESS
"the operation completed successfully"
Expand Down Expand Up @@ -50,6 +51,7 @@ function description(err::CUFFTError)
"no description for this error"
end
end
## COV_EXCL_STOP


## API call wrapper
Expand Down
4 changes: 4 additions & 0 deletions src/mapreduce.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using CuArrays: @cuindex, cudims

## COV_EXCL_START

function mapreducedim_kernel_serial(f, op, R, A, range)
I = @cuindex R
newrange = map((r, i) -> r === nothing ? i : r, range, I)
Expand Down Expand Up @@ -53,6 +55,8 @@ function mapreducedim_kernel_parallel(f, op, R::CuDeviceArray{T}, A::CuDeviceArr
return
end

## COV_EXCL_STOP

function Base._mapreducedim!(f, op, R::CuArray{T}, A::CuArray{T}) where {T}
# the kernel as generated from `f` and `op` can require lots of registers (eg. #160),
# so we need to be careful about how many threads we launch not to run out of them.
Expand Down
2 changes: 2 additions & 0 deletions src/rand/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CURANDError) =

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

## COV_EXCL_START
function description(err)
if err.code == CURAND_STATUS_SUCCESS
"generator was created successfully"
Expand Down Expand Up @@ -42,6 +43,7 @@ function description(err)
"no description for this error"
end
end
## COV_EXCL_STOP


## API call wrapper
Expand Down
2 changes: 2 additions & 0 deletions src/solver/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CUSOLVERError) =

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

## COV_EXCL_START
function description(err)
if err.code == CUSOLVER_STATUS_SUCCESS
"the operation completed successfully"
Expand All @@ -32,6 +33,7 @@ function description(err)
"no description for this error"
end
end
## COV_EXCL_STOP


## API call wrapper
Expand Down
2 changes: 2 additions & 0 deletions src/tensor/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Base.showerror(io::IO, err::CUTENSORError) =

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

## COV_EXCL_START
function description(err::CUTENSORError)
if err.code == CUTENSOR_STATUS_SUCCESS
"the operation completed successfully"
Expand Down Expand Up @@ -44,6 +45,7 @@ function description(err::CUTENSORError)
"no description for this error"
end
end
## COV_EXCL_STOP


## API call wrapper
Expand Down