Skip to content
Snippets Groups Projects
Commit 34a5db69 authored by Eric Müller's avatar Eric Müller :mountain_bicyclist:
Browse files

feat: Use all available cores for building by default.

Change-Id: I668edd30825baf463beffb43d835d608cde55e58
parent cca30480
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,8 @@ all_stages=set(["fetch", "build-base-image", "build-base", "build-spack", "image
all_styles = list(os.listdir(os.path.dirname(os.path.realpath(__file__)) + "/../share/yashchiki/styles/"))
count_available_cores = len(os.sched_getaffinity(0))
# mandatory
parser.add_argument(
"style", type=str, choices=all_styles,
......@@ -120,8 +122,9 @@ parser.add_argument(
"postfix'ed with an ascending integer.")
# optional options
parser.add_argument(
"-j", "--jobs", type=int, default=1,
help="Number of parallel jobs to use when concurrent execution of tasks is available.")
"-j", "--jobs", type=int, default=count_available_cores,
help="Number of parallel jobs to use when concurrent execution of "
"tasks is available. Defaults to the number of available cores.")
parser.add_argument(
"--debug", action="store_true",
help="Enable debug-level logging.")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment