@@ -15,6 +15,7 @@ function _reverse(input::AnyCuArray{T, N}, output::AnyCuArray{T, N};
1515 # converts a linear index in a reduced array to an ND-index, but using the reduced size
1616 nd_idx = CartesianIndices (input)
1717
18+ # # COV_EXCL_START
1819 function kernel (input:: AbstractArray{T, N} , output:: AbstractArray{T, N} ) where {T, N}
1920 offset_in = blockDim (). x * (blockIdx (). x - 1 i32)
2021 index_in = offset_in + threadIdx (). x
@@ -28,6 +29,7 @@ function _reverse(input::AnyCuArray{T, N}, output::AnyCuArray{T, N};
2829
2930 return
3031 end
32+ # # COV_EXCL_STOP
3133
3234 nthreads = 256
3335 nblocks = cld (length (input), nthreads)
@@ -51,6 +53,7 @@ function _reverse!(data::AnyCuArray{T, N}; dims=1:ndims(data)) where {T, N}
5153 # converts a linear index in a reduced array to an ND-index, but using the reduced size
5254 nd_idx = CartesianIndices (reduced_size)
5355
56+ # # COV_EXCL_START
5457 function kernel (data:: AbstractArray{T, N} ) where {T, N}
5558 offset_in = blockDim (). x * (blockIdx (). x - 1 i32)
5659
@@ -71,6 +74,7 @@ function _reverse!(data::AnyCuArray{T, N}; dims=1:ndims(data)) where {T, N}
7174
7275 return
7376 end
77+ # # COV_EXCL_STOP
7478
7579 # NOTE: we launch slightly more than half the number of elements in the array as threads.
7680 # The last non-singleton dimension along which to reverse is used to define how the array is split.
0 commit comments