Skip to content

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
`GPUArraysCore` doesnt export `backend`
  • Loading branch information
N5N3 committed Oct 15, 2022
1 parent cd32b53 commit 1cf5e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StructArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Adapt.adapt_structure(to, s::StructArray) = replace_storage(x->Adapt.adapt(to, x
# for GPU broadcast
import GPUArraysCore
function GPUArraysCore.backend(::Type{T}) where {T<:StructArray}
backs = map(backend, fieldtypes(array_types(T)))
backs = map(GPUArraysCore.backend, fieldtypes(array_types(T)))
all(Base.Fix2(===, backs[1]), tail(backs)) || error("backend mismatch!")
return backs[1]
end
Expand Down

0 comments on commit 1cf5e5a

Please sign in to comment.