Skip to content

Commit

Permalink
Reduce the number of threads openblas uses on each architecture.
Browse files Browse the repository at this point in the history
We are now using 16 as max threads for openblas. This will considerably
reduce the memory consumption on startup.
  • Loading branch information
ViralBShah committed Nov 27, 2013
1 parent 97e1313 commit 716151d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -719,13 +719,13 @@ ifneq ($(ARCH),x86_64)
OPENBLAS_BUILD_OPTS += NUM_THREADS=8
else ifeq ($(OS),WINNT)
# Windows seems unable to handle very many
OPENBLAS_BUILD_OPTS += NUM_THREADS=24
OPENBLAS_BUILD_OPTS += NUM_THREADS=16
else ifeq ($(OS),Darwin)
# This should suffice for the largest macs
OPENBLAS_BUILD_OPTS += NUM_THREADS=24
OPENBLAS_BUILD_OPTS += NUM_THREADS=16
else
# On linux, try to provision for the largest possible machine currently
OPENBLAS_BUILD_OPTS += NUM_THREADS=128
OPENBLAS_BUILD_OPTS += NUM_THREADS=16
endif
else
OPENBLAS_BUILD_OPTS += USE_THREAD=0
Expand Down

0 comments on commit 716151d

Please sign in to comment.