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
which means functions that rely on it like append! don't work:
julia>append!(v, mtl([1, 2, 3]))
ERROR: MethodError: no method matching resize!(::MtlVector{Float32, Metal.MTL.MTLResourceStorageModePrivate}, ::Int64)
Closest candidates are:resize!(::SparseArrays.ReadOnly, ::Any)
@ SparseArrays ~/.julia/juliaup/julia-1.10.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/SparseArrays/src/readonly.jl:33resize!(::SparseArrays.UMFPACK.UmfpackWS, ::Any, ::Bool; expand_only)
@ SparseArrays ~/.julia/juliaup/julia-1.10.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/SparseArrays/src/solvers/umfpack.jl:214resize!(::BitVector, ::Integer)
@ Base bitarray.jl:814...
Stacktrace:
[1] _append!(a::MtlVector{…}, ::Base.HasShape{…}, iter::MtlVector{…})
@ Base ./array.jl:1196
[2] append!(a::MtlVector{…}, iter::MtlVector{…})
@ Base ./array.jl:1187
[3] top-level scope
@ REPL[9]:1
[4] top-level scope
@ ~/.julia/packages/Metal/lnkVP/src/initialization.jl:57
Some type information was truncated. Use `show(err)` to see complete types.
This causes issues for generic in-place code that relies on resize!/append! to be defined for AbstractVector.
Version information:
julia>versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-2518:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU:10× Apple M1 Max
WORD_SIZE:64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads:1 on 8 virtual cores
(Metal.jl) pkg> st
Status `~/Simons Foundation Dropbox/Matthew Fishman/Documents/workdir/temp_julia_project/Metal.jl/Project.toml`
[dde4c033] Metal v0.5.1
Please let me know if there is a simple workaround or low level definition I could use, and if so I'm happy to make a PR.
The text was updated successfully, but these errors were encountered:
I didn't see an issue for this. I see that
resize!
isn't defined forMtlVector
:which means functions that rely on it like
append!
don't work:This causes issues for generic in-place code that relies on
resize!
/append!
to be defined forAbstractVector
.Version information:
Please let me know if there is a simple workaround or low level definition I could use, and if so I'm happy to make a PR.
The text was updated successfully, but these errors were encountered: