diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-18 09:37:44 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-18 09:37:44 +0200 |
| commit | 4f0403d24067c1f69b21cd29c5f9e5949e64c635 (patch) | |
| tree | 606cc6b8b781833eaa17bf519412034a253ff213 | |
| parent | f9570e5089eeabe32be84ab0507c1d9df99650af (diff) | |
| download | nissy-core-4f0403d24067c1f69b21cd29c5f9e5949e64c635.tar.gz nissy-core-4f0403d24067c1f69b21cd29c5f9e5949e64c635.zip | |
Change default number of threads from 16 to 8
| -rwxr-xr-x | configure.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.sh b/configure.sh index ae51189..aac6444 100755 --- a/configure.sh +++ b/configure.sh | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | # | 15 | # |
| 16 | # THREADS=n | 16 | # THREADS=n |
| 17 | # Choose how many threads to use for multi-threaded oerations. | 17 | # Choose how many threads to use for multi-threaded oerations. |
| 18 | # By default, 16 threads will be used (TODO: in the future this will be | 18 | # By default, 8 threads will be used (TODO: in the future this will be |
| 19 | # determined base on the system). | 19 | # determined base on the system). |
| 20 | # The number n must be between 1 and 128. | 20 | # The number n must be between 1 and 128. |
| 21 | # | 21 | # |
| @@ -29,18 +29,18 @@ | |||
| 29 | # | 29 | # |
| 30 | # Examples | 30 | # Examples |
| 31 | # | 31 | # |
| 32 | # 1. Build using clang and 8 threads | 32 | # 1. Build using clang and 4 threads |
| 33 | # CC=clang THREADS=8 ./configure.sh && make | 33 | # CC=clang THREADS=4 ./configure.sh && make |
| 34 | # | 34 | # |
| 35 | # 2. Build using thread and undefined behavior sanitizers when in debug mode | 35 | # 2. Build using thread and undefined behavior sanitizers when in debug mode |
| 36 | # SANITIZE="thread,undefined" ./configures && make | 36 | # SANITIZE="thread,undefined" ./configure.sh && make |
| 37 | 37 | ||
| 38 | greparch() { | 38 | greparch() { |
| 39 | $CC -march=native -dM -E - </dev/null 2>/dev/null | grep "$1" | 39 | $CC -march=native -dM -E - </dev/null 2>/dev/null | grep "$1" |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | detectthreads() { | 42 | detectthreads() { |
| 43 | echo 16 # TODO: choose based on system | 43 | echo 8 # TODO: choose based on system |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | detectarch() { | 46 | detectarch() { |
