JuliaGPU/Metal.jl

KernelAbstractions copyto! typo

Closed this issue · 0 comments

in MetalKernels.jl:

36  function KA.copyto!(::MetalBackend, A::MtlArray{T}, B::MtlArray{T}) where T
37      if device(dest) == device(src)
38          GC.@preserve A B copyto!(A, B)
39          return A
40      else
41          error("Copy between different devices not implemented")
42      end
43  end

Calling KA.copyto! with a metal backend will throw: ERROR: LoadError: UndefVarError: dest not defined. Maybe dest and src should be A and B respectively?