Skip to content

Commit 5af40b1

Browse files
committed
increase default maximum number of openblas threads on power
1 parent a06314b commit 5af40b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deps/blas.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ ifeq ($(OPENBLAS_USE_THREAD), 1)
1111
OPENBLAS_BUILD_OPTS += USE_THREAD=1
1212
OPENBLAS_BUILD_OPTS += GEMM_MULTITHREADING_THRESHOLD=50
1313
# Maximum number of threads for parallelism
14-
ifneq ($(ARCH),x86_64)
14+
ifneq (, $(filter $(ARCH), powerpc64le ppc64le))
15+
# 196 cores is the biggest Power machine.
16+
OPENBLAS_BUILD_OPTS += NUM_THREADS=196
17+
else ifneq ($(ARCH),x86_64)
1518
# Assume we can't address much memory to spawn many threads
1619
# It is also unlikely that 32-bit architectures have too many cores
1720
OPENBLAS_BUILD_OPTS += NUM_THREADS=8

0 commit comments

Comments
 (0)