Skip to content

Commit 716151d

Browse files
committed
Reduce the number of threads openblas uses on each architecture.
We are now using 16 as max threads for openblas. This will considerably reduce the memory consumption on startup.
1 parent 97e1313 commit 716151d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -719,13 +719,13 @@ ifneq ($(ARCH),x86_64)
719719
OPENBLAS_BUILD_OPTS += NUM_THREADS=8
720720
else ifeq ($(OS),WINNT)
721721
# Windows seems unable to handle very many
722-
OPENBLAS_BUILD_OPTS += NUM_THREADS=24
722+
OPENBLAS_BUILD_OPTS += NUM_THREADS=16
723723
else ifeq ($(OS),Darwin)
724724
# This should suffice for the largest macs
725-
OPENBLAS_BUILD_OPTS += NUM_THREADS=24
725+
OPENBLAS_BUILD_OPTS += NUM_THREADS=16
726726
else
727727
# On linux, try to provision for the largest possible machine currently
728-
OPENBLAS_BUILD_OPTS += NUM_THREADS=128
728+
OPENBLAS_BUILD_OPTS += NUM_THREADS=16
729729
endif
730730
else
731731
OPENBLAS_BUILD_OPTS += USE_THREAD=0

0 commit comments

Comments
 (0)