Skip to content

Commit 951430c

Browse files
committed
Adapt to Adapt.jl changes.
1 parent ba3338d commit 951430c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
1212

1313
[compat]
1414
AbstractFFTs = "0.4, 0.5, 1.0"
15-
Adapt = "2.0"
15+
Adapt = "2.0, 3.0"
1616
julia = "1.5"
1717

1818
[extras]

src/host/broadcast.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ abstract type AbstractGPUArrayStyle{N} <: AbstractArrayStyle{N} end
1919

2020
# Wrapper types otherwise forget that they are GPU compatible
2121
# NOTE: don't directly use GPUArrayStyle here not to lose downstream customizations.
22-
BroadcastStyle(W::Type{<:WrappedGPUArray})= BroadcastStyle(parent(W){eltype(W), ndims(W)})
23-
backend(W::Type{<:WrappedGPUArray}) = backend(parent(W){eltype(W), ndims(W)})
22+
BroadcastStyle(W::Type{<:WrappedGPUArray})= BroadcastStyle(Adapt.parent(W){Adapt.eltype(W), Adapt.ndims(W)})
23+
backend(W::Type{<:WrappedGPUArray}) = backend(Adapt.parent(W){Adapt.eltype(W), Adapt.ndims(W)})
2424

2525
# Ref is special: it's not a real wrapper, so not part of Adapt,
2626
# but it is commonly used to bypass broadcasting of an argument

0 commit comments

Comments
 (0)