Skip to content

Commit 186f05e

Browse files
committed
support julia 1.6 LTS
1 parent dcdeaa2 commit 186f05e

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ version = "0.1.1"
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
88

99
[compat]
10-
julia = "1.7"
10+
julia = "1.6"

src/blas.jl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
import LinearAlgebra.BLAS: libblastrampoline, @blasfunc, BlasInt, BlasReal
1+
import LinearAlgebra.BLAS: @blasfunc, BlasInt, BlasReal
22

33
export spr!
44

5+
@static if VERSION < v"1.7-"
6+
import LinearAlgebra.BLAS: libblas
7+
thislib = libblas
8+
else
9+
import LinearAlgebra.BLAS: libblastrampoline
10+
thislib = libblastrampoline
11+
end
12+
513
for (fname, elty) in ((:dspr_, :Float64),
614
(:sspr_, :Float32))
715
@eval begin
@@ -12,7 +20,7 @@ for (fname, elty) in ((:dspr_, :Float64),
1220
incx::Integer,
1321
AP::Union{Ptr{$elty}, AbstractArray{$elty}})
1422

15-
ccall((@blasfunc($fname), libblastrampoline), Cvoid,
23+
ccall((@blasfunc($fname), thislib), Cvoid,
1624
(Ref{UInt8}, # uplo,
1725
Ref{BlasInt}, # n,
1826
Ref{$elty}, # α,

0 commit comments

Comments
 (0)