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
* Use MPS instead of MPSGraph matmul when optimal
* Faster testing
* Fix
* Algorithm selection
* flopscomp improvements
* Fix & tests
* No need for AppleAccelerate
* More specific error
* More tests
# Supported values are :auto, :MPS, :MPSGraph, and :GPUArrays
34
+
const matmul_alg =ScopedValue(:auto)
35
+
matmul_alg_error(alg, inT, outT, vec) =error("Matrix-$(vec ?"Vector":"Matrix") multiplication algorithm `:$alg` is not supported for input eltype $inT and output eltype $outT.")
36
+
24
37
LinearAlgebra.generic_matmatmul!(C::MtlMatrix, tA, tB, A::MtlMatrix, B::MtlMatrix, _add::MulAddMul) =
25
38
LinearAlgebra.generic_matmatmul!(C, tA, tB, A, B, _add.alpha, _add.beta)
26
39
@autoreleasepoolfunction LinearAlgebra.generic_matmatmul!(C::MtlMatrix, tA, tB,
@@ -46,13 +59,20 @@ LinearAlgebra.generic_matmatmul!(C::MtlMatrix, tA, tB, A::MtlMatrix, B::MtlMatri
0 commit comments