Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dedal
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
dedal
Commits
34a5db69
Commit
34a5db69
authored
7 months ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
feat: Use all available cores for building by default.
Change-Id: I668edd30825baf463beffb43d835d608cde55e58
parent
cca30480
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/yashchiki
+5
-2
5 additions, 2 deletions
bin/yashchiki
with
5 additions
and
2 deletions
bin/yashchiki
+
5
−
2
View file @
34a5db69
...
...
@@ -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.
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment