Open maleadt opened 2 months ago
For example, AbstractGPUVecOrMat:
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., https://github.com/JuliaLang/julia/pull/53611#issuecomment-2045278635.
Adjoint
<: AbstractArray
<: AbstractGPUArray
I guess this is https://github.com/JuliaLang/julia/issues/51910, however we probably need a different fix in the short term.
For example,
AbstractGPUVecOrMat
:... because
Adjoint
is<: AbstractArray
but not<: AbstractGPUArray
. This is bad, because it breaks a bunch of generic code, e.g., https://github.com/JuliaLang/julia/pull/53611#issuecomment-2045278635.I guess this is https://github.com/JuliaLang/julia/issues/51910, however we probably need a different fix in the short term.