Skip to content

Commit 4075446

Browse files
authored
Merge pull request #89 from JuliaLinearAlgebra/vs/nthreads
Use APPLE_NTHREADS when querying number of threads
2 parents 05061e9 + 96711fd commit 4075446

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "AppleAccelerate"
22
uuid = "13e28ba4-7ad8-5781-acae-3021b1ed3924"
3-
version = "0.4.3"
3+
version = "0.4.4"
44

55
[deps]
66
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

src/AppleAccelerate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function get_num_threads()::LinearAlgebra.BlasInt
118118
if retval == BLAS_THREADING_SINGLE_THREADED
119119
return LinearAlgebra.BlasInt(1)
120120
elseif retval == BLAS_THREADING_MULTI_THREADED
121-
return LinearAlgebra.BlasInt(Sys.CPU_THREADS)
121+
return ccall((:APPLE_NTHREADS, libacc), LinearAlgebra.BlasInt, ())
122122
else
123123
@error "AppleAccelerate: Call to BlasGetThreading failed"
124124
end

0 commit comments

Comments
 (0)