***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngmultiscale
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hanser, Valentin
ngmultiscale
Commits
abdb3c76
Commit
abdb3c76
authored
2 years ago
by
Valentin Hanser
Browse files
Options
Downloads
Patches
Plain Diff
default values for input argument of num_procs for .install
parent
dbf289c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+12
-0
12 additions, 0 deletions
install.sh
with
12 additions
and
0 deletions
install.sh
+
12
−
0
View file @
abdb3c76
...
@@ -4,6 +4,18 @@ INSTALL_DIR=./C++/cmake/build
...
@@ -4,6 +4,18 @@ INSTALL_DIR=./C++/cmake/build
NUM_PROC
=
$(
grep
-c
^processor /proc/cpuinfo
)
NUM_PROC
=
$(
grep
-c
^processor /proc/cpuinfo
)
NUM_PROC
=
$((
$NUM_PROC
-
1
))
NUM_PROC
=
$((
$NUM_PROC
-
1
))
MAX_NUM_PROC
=
$1
if
[[
-z
$MAX_NUM_PROC
]]
then
MAX_NUM_PROC
=
7
fi
if
[
$NUM_PROC
-gt
$MAX_NUM_PROC
]
then
NUM_PROC
=
$MAX_NUM_PROC
fi
if
[[
!
-d
$INSTALL_DIR
]]
if
[[
!
-d
$INSTALL_DIR
]]
then
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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