Skip to content

Commit b189409

Browse files
authored
Merge pull request #17 from JuliaSIMD/julia1.8
Julia 1.8
2 parents 2a094fc + b0bcd7c commit b189409

File tree

4 files changed

+24
-21
lines changed

4 files changed

+24
-21
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TriangularSolve"
22
uuid = "d5829a12-d9aa-46ab-831f-fb7c9ab06edf"
33
authors = ["chriselrod <[email protected]> and contributors"]
4-
version = "0.1.9"
4+
version = "0.1.10"
55

66
[deps]
77
CloseOpenIntervals = "fb6a15b2-703c-40df-9091-08a04967cfa9"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ BenchmarkTools.Trial: 10000 samples with 1 evaluation.
7070
```
7171
Multithreaded benchmarks:
7272
```julia
73-
julia> BLAS.set_num_threads(TriangularSolve.VectorizationBase.num_cores())
73+
julia> BLAS.set_num_threads(min(Threads.nthreads(), TriangularSolve.VectorizationBase.num_cores()))
7474

7575
julia> @benchmark TriangularSolve.rdiv!($C, $A, UpperTriangular($B))
7676
BenchmarkTools.Trial: 10000 samples with 3 evaluations.

src/TriangularSolve.jl

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -531,22 +531,24 @@ function __init__()
531531
end
532532
end
533533

534-
# let
535-
# while true
536-
# A = rand(1, 1)
537-
# B = rand(1, 1)
538-
# res = similar(A)
539-
# rdiv!(res, A, UpperTriangular(B))
540-
# rdiv!(res, A, UnitUpperTriangular(B))
541-
# rdiv!(res, A, UpperTriangular(B), Val(false))
542-
# rdiv!(res, A, UnitUpperTriangular(B), Val(false))
543-
544-
# __init__()
545-
# ldiv!(res, LowerTriangular(B), A)
546-
# ldiv!(res, UnitLowerTriangular(B), A)
547-
# ldiv!(res, LowerTriangular(B), A, Val(false))
548-
# ldiv!(res, UnitLowerTriangular(B), A, Val(false))
549-
# break
550-
# end
551-
# end
534+
@static if VERSION >= v"1.8.0-beta1"
535+
let
536+
while true
537+
A = rand(1, 1)
538+
B = rand(1, 1)
539+
res = similar(A)
540+
rdiv!(res, A, UpperTriangular(B))
541+
rdiv!(res, A, UnitUpperTriangular(B))
542+
rdiv!(res, A, UpperTriangular(B), Val(false))
543+
rdiv!(res, A, UnitUpperTriangular(B), Val(false))
544+
545+
__init__()
546+
ldiv!(res, LowerTriangular(B), A)
547+
ldiv!(res, UnitLowerTriangular(B), A)
548+
ldiv!(res, LowerTriangular(B), A, Val(false))
549+
ldiv!(res, UnitLowerTriangular(B), A, Val(false))
550+
break
551+
end
552+
end
553+
end
552554
end

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ end
3030
end
3131

3232
using Aqua
33-
Aqua.test_all(TriangularSolve)
33+
Aqua.test_all(TriangularSolve, ambiguities=false)
34+
@test isempty(Test.detect_ambiguities(TriangularSolve))
3435

0 commit comments

Comments
 (0)