We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
max(1, Sys.CPU_THREADS)
aarch64
1 parent 1549064 commit f3bc6bfCopy full SHA for f3bc6bf
stdlib/LinearAlgebra/src/LinearAlgebra.jl
@@ -583,7 +583,11 @@ function __init__()
583
Base.at_disable_library_threading(() -> BLAS.set_num_threads(1))
584
585
if !haskey(ENV, "OPENBLAS_NUM_THREADS")
586
- BLAS.set_num_threads(max(1, Sys.CPU_THREADS ÷ 2))
+ @static if Sys.isapple() && Base.BinaryPlatforms.arch(Base.BinaryPlatforms.HostPlatform()) == "aarch64"
587
+ BLAS.set_num_threads(max(1, Sys.CPU_THREADS))
588
+ else
589
+ BLAS.set_num_threads(max(1, Sys.CPU_THREADS ÷ 2))
590
+ end
591
end
592
593
0 commit comments