Skip to content

Commit

Permalink
Update ext/CUDASupportExt.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Pietro Vertechi <pietro.vertechi@protonmail.com>
  • Loading branch information
RainerHeintzmann and piever committed Dec 21, 2023
1 parent dee9144 commit 2f751c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/CUDASupportExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Base.Broadcast.BroadcastStyle(::Type{T}) where (T<: CircShiftedArray{<
CUDA.CuArrayStyle{ndims(T)}()

Check warning on line 9 in ext/CUDASupportExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/CUDASupportExt.jl#L7-L9

Added lines #L7 - L9 were not covered by tests
end

Adapt.adapt_structure(to, x::ShiftedArray{T, M, N, <:CuArray}) where {T,M,N} =
Adapt.adapt_structure(to, x::ShiftedArray{T, M, N}) where {T, M, N} =

Check warning on line 12 in ext/CUDASupportExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/CUDASupportExt.jl#L12

Added line #L12 was not covered by tests
# lets do this for the ShiftedArray type
ShiftedArray(adapt(to, parent(x)), shifts(x); default=ShiftedArrays.default(x))
function Base.Broadcast.BroadcastStyle(::Type{T}) where (T<: ShiftedArray{<:Any,<:Any,<:Any,<:CuArray})
Expand Down

0 comments on commit 2f751c0

Please sign in to comment.