Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
e6b5c553
Commit
e6b5c553
authored
3 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
adds toggle for using core masks
parent
c9d3514b
No related branches found
No related tags found
No related merge requests found
Pipeline
#122412
passed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
TurTLE/_code.py
+9
-6
9 additions, 6 deletions
TurTLE/_code.py
pc_host_info.py
+8
-3
8 additions, 3 deletions
pc_host_info.py
with
17 additions
and
9 deletions
TurTLE/_code.py
+
9
−
6
View file @
e6b5c553
...
...
@@ -760,6 +760,9 @@ class _code(_base):
script_file
.
write
(
'
export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK}
\n
'
)
# explicit binding options that can be used further on if needed
if
'
use_TurTLE_core_distribution
'
not
in
host_info
.
keys
():
host_info
[
'
use_TurTLE_core_distribution
'
]
=
False
if
host_info
[
'
use_TurTLE_core_distribution
'
]:
core_masks
=
TurTLE
.
tools
.
distribute_cores_evenly
(
nprocesses
=
nb_processes_per_node
,
nthreads_per_process
=
nb_threads_per_process
,
...
...
This diff is collapsed.
Click to expand it.
pc_host_info.py
+
8
−
3
View file @
e6b5c553
...
...
@@ -34,7 +34,8 @@ host_info = {'type' : 'pc'}
# 'account' : info_template_account,
# 'executable_launcher' : info_template_executable_launcher,
# 'extra_slurm_lines' : info_template_extra_slurm_lines,
# 'explicit_slurm_environment' : info_template_explicit_slurm_environment}
# 'explicit_slurm_environment' : info_template_explicit_slurm_environment,
# 'use_TurTLE_core_distribution' : info_use_TurTLE_core_distribution}
# info_template_type can be one of:
# 'pc' --- jobs run interactively
...
...
@@ -73,3 +74,7 @@ host_info = {'type' : 'pc'}
# in the submission script, or whether the cluster chooses it based on the
# resources requested
# info_use_TurTLE_core_distribution, relevant for `SLURM` clusters,
# is a bool specifying whether TurTLE should request explicit core
# masks for the individual MPI processes.
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