From 53665868270c5202a46e30bae7412faf13a9eabe Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Fri, 22 Apr 2016 02:31:03 -0400 Subject: [PATCH] Enable threading build by default, but with only 1 thread unless you opt in to setting JULIA_NUM_THREADS closes #15743 --- Make.inc | 2 +- src/options.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Make.inc b/Make.inc index c0ad81bfa0c2f..f8507b3d6c019 100644 --- a/Make.inc +++ b/Make.inc @@ -869,7 +869,7 @@ UNTRUSTED_SYSTEM_LIBM := 1 endif # Threads -ifeq ($(JULIA_THREADS), 1) +ifneq ($(JULIA_THREADS), 0) JCPPFLAGS += -DJULIA_ENABLE_THREADING endif diff --git a/src/options.h b/src/options.h index 948f00e857fed..74a852b99ae31 100644 --- a/src/options.h +++ b/src/options.h @@ -97,7 +97,7 @@ // defaults for # threads #define NUM_THREADS_NAME "JULIA_NUM_THREADS" -#define DEFAULT_NUM_THREADS 4 +#define DEFAULT_NUM_THREADS 1 // affinitization behavior #define MACHINE_EXCLUSIVE_NAME "JULIA_EXCLUSIVE"