Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract type aliases do not match expected types #529

Open
maleadt opened this issue Apr 9, 2024 · 0 comments
Open

Abstract type aliases do not match expected types #529

maleadt opened this issue Apr 9, 2024 · 0 comments

Comments

@maleadt
Copy link
Member

maleadt commented Apr 9, 2024

For example, AbstractGPUVecOrMat:

julia> LinearAlgebra.Adjoint{Float64, Matrix{Float64}} <: AbstractVecOrMat
true

julia> LinearAlgebra.Adjoint{Float64, CuMatrix{Float64}} <: GPUArrays.AbstractGPUVecOrMat
false

... because Adjoint is <: AbstractArray but not <: AbstractGPUArray. This is bad, because it breaks a bunch of generic code, e.g., JuliaLang/julia#53611 (comment).

I guess this is JuliaLang/julia#51910, however we probably need a different fix in the short term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant