Skip to content

Commit e66460b

Browse files
Use more precise isdefined check in linalg (#636)
Co-authored-by: Tim Besard <tim.besard@gmail.com>
1 parent 8a6329b commit e66460b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/host/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function generic_matmatmul!(C::AbstractArray{R}, A::AbstractArray{T}, B::Abstrac
394394
C
395395
end
396396

397-
@static if VERSION < v"1.12.0-"
397+
@static if !isdefined(LinearAlgebra, Symbol("@stable_muladdmul")) # @stable_muladdmul was added in 1.12
398398
function LinearAlgebra.generic_matvecmul!(C::AbstractGPUVector, tA::AbstractChar, A::AbstractGPUMatrix, B::AbstractGPUVector, _add::MulAddMul = MulAddMul())
399399
generic_matmatmul!(C, wrap(A, tA), B, _add)
400400
end

0 commit comments

Comments
 (0)