Skip to content

Commit

Permalink
Enable threading build by default, but with only 1 thread
Browse files Browse the repository at this point in the history
unless you opt in to setting JULIA_NUM_THREADS
closes #15743
  • Loading branch information
tkelman committed Apr 22, 2016
1 parent 5c9b7a6 commit 5366586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ UNTRUSTED_SYSTEM_LIBM := 1
endif

# Threads
ifeq ($(JULIA_THREADS), 1)
ifneq ($(JULIA_THREADS), 0)
JCPPFLAGS += -DJULIA_ENABLE_THREADING
endif

Expand Down
2 changes: 1 addition & 1 deletion src/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5366586

Please sign in to comment.