You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This took me a while to figure out today, while debugging the new CUSPARSE package:
ERROR: LoadError: MethodError: `convert` has no method matching convert(::Type{CUDArt.CudaArray{T,N}}, ::Type{Int32}, ::Tuple{Int32})
This may have arisen from a call to the constructor CUDArt.CudaArray{T,N}(...),
since type constructors fall back to convert methods.
Closest candidates are:
CUDArt.CudaArray(::Type{T}, !Matched::Integer...)
CUDArt.CudaArray(::Type{T}, !Matched::Tuple{Vararg{Int64}})
call{T}(::Type{T}, ::Any)
...
The relevant part from arrays.jl:
CudaArray(T::Type, dims::Integer...) = CudaArray(T, dims)
function CudaArray(T::Type, dims::Dims)
i.e. CudaArray(T,Int32) is happy, but CudaArray(T,(Int32,)) is not. Dims is defined strictly as Int64:
Dims => Tuple{Vararg{Int64}}
Should Dims also be Tuple{Vararg{Integer}} ? Maybe this is a Base problem...
The text was updated successfully, but these errors were encountered:
This took me a while to figure out today, while debugging the new CUSPARSE package:
The relevant part from arrays.jl:
i.e. CudaArray(T,Int32) is happy, but CudaArray(T,(Int32,)) is not. Dims is defined strictly as Int64:
Should
Dims
also beTuple{Vararg{Integer}}
? Maybe this is a Base problem...The text was updated successfully, but these errors were encountered: