Skip to content

Commit fca820e

Browse files
author
Will Kimmerer
committed
switch to BLAS.get_num_threads
1 parent e4f7f56 commit fca820e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SuiteSparseGraphBLAS.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function __init__()
143143
# In the future this should hopefully allow us to do no-copy passing of arrays between Julia and SS:GrB.
144144
# In the meantime it helps Julia respond to memory pressure from SS:GrB and finalize things in a timely fashion.
145145
@wraperror LibGraphBLAS.GxB_init(LibGraphBLAS.GrB_NONBLOCKING, cglobal(:jl_malloc), cglobal(:jl_calloc), cglobal(:jl_realloc), cglobal(:jl_free))
146-
gbset(:nthreads, Sys.CPU_THREADS ÷ 2)
146+
gbset(:nthreads, BLAS.get_num_threads())
147147
# Eagerly load selectops constants.
148148
_loadselectops()
149149
ALL.p = load_global("GrB_ALL", LibGraphBLAS.GrB_Index)

0 commit comments

Comments
 (0)