Skip to content

lu_instance doesn't work for Metal.jl array #467

@ctessum

Description

@ctessum

For example:

using Metal
using LinearAlgebra
using ArrayInterface

x = MtlArray(rand(Float32, 3, 3))
lu(x) # This works.
ArrayInterface.lu_instance(rand(Float32, 3, 3)) # This works.
ArrayInterface.lu_instance(x) # This fails.

This is the error message:

/AppleInternal/Library/BuildRoots/4~B5E4ugD7ttWrICQL0cKin8ziE5extnGgu--yePo/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSMatrix/LinearAlgebra/MPSMatrixCombination.mm:293: failed assertion `[MPSMatrixCopy initWithDevice:subMatrixRows:subMatrixColumns] subMatrixColumns must be larger than zero'

[74834] signal 6: Abort trap: 6
in expression starting at REPL[7]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 44119237 (Pool: 44118177; Big: 1060); GC: 32
zsh: abort      julia
  [4fba245c] ArrayInterface v7.19.0
  [dde4c033] Metal v1.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions