diff --git a/Config.in b/Config.in index 1a36cb5..e15ce87 100644 --- a/Config.in +++ b/Config.in @@ -449,6 +449,57 @@ endmenu menu "Build Settings" depends on !BOOK_BLFS + #--- Parallelism + menu "Parallelism settings" + if HAVE_NPROC + config ALL_CORES + bool "Use all cores as in new books (say n for old books)" + default y + help + Use book instructions as written for parallelism since version + r12.0-87 included. If you answer no, then jhalfs will fall back + to a static number of cores, defined below. If you answer y, and + your system supports it, you'll be asked for a cpu set to use. + There is no detection of book version. If the book version + is lower than r12.0-87, say no! + + if ALL_CORES && HAVE_CGROUP + config CPUSET + string "set of cpus to use, or 'all' for all cpus" + default "all" + help + See "List format" in cpuset(7). Choosing cpus depend + on the topology of your processors. Sometimes two + hyperthreads on the same core are numbered consecutively. + For example for using all cores and no hyperthreading on + a Haswell, use "0,2,4,6". Other brands may have a different + topology, and may require e.g. "0-3" to use the first 4 cores. + If not sure, keep the default. + endif + + endif # HAVE_NPROC + if !HAVE_NPROC + config ALL_CORES + bool + default n + endif + + config N_PARALLEL + int "Number of parallel `make' jobs" + depends on !ALL_CORES + default 1 + help + #-- The usual recommandation is (number of CPU cores)+1 + # Do not set for meaningful SBU calculations. + + config REALSBU + bool "Build Binutils pass1 without parallelism (Real SBU)" + default n + help + #-- Use -j1 in make invokation for Binutils pass1 to + # get a valid SBU value. + endmenu # parallelism + #--- Test Suites config CONFIG_TESTS bool "Run testsuites" @@ -758,57 +809,6 @@ endmenu #--- System configuration menu "Advanced Features" depends on !BOOK_BLFS - #--- Parallelism - menu "Parallelism settings" - if HAVE_NPROC - config ALL_CORES - bool "Use all cores as in new books (say n for old books)" - default y - help - Use book instructions as written for parallelism since version - r12.0-87 included. If you answer no, then jhalfs will fall back - to a static number of cores, defined below. If you answer y, and - your system supports it, you'll be asked for a cpu set to use. - There is no detection of book version. If the book version - is lower than r12.0-87, say no! - - if ALL_CORES && HAVE_CGROUP - config CPUSET - string "set of cpus to use, or 'all' for all cpus" - default "all" - help - See "List format" in cpuset(7). Choosing cpus depend - on the topology of your processors. Sometimes two - hyperthreads on the same core are numbered consecutively. - For example for using all cores and no hyperthreading on - a Haswell, use "0,2,4,6". Other brands may have a different - topology, and may require e.g. "0-3" to use the first 4 cores. - If not sure, keep the default. - endif - - endif # HAVE_NPROC - if !HAVE_NPROC - config ALL_CORES - bool - default n - endif - - config N_PARALLEL - int "Number of parallel `make' jobs" - depends on !ALL_CORES - default 1 - help - #-- The usual recommandation is (number of CPU cores)+1 - # Do not set for meaningful SBU calculations. - - config REALSBU - bool "Build Binutils pass1 without parallelism (Real SBU)" - default n - help - #-- Use -j1 in make invokation for Binutils pass1 to - # get a valid SBU value. - endmenu # parallelism - #--- Optimizations config CONFIG_OPTIMIZE bool "Optimization"