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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
e6992db0
Commit
e6992db0
authored
5 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
tweak SLURM script setup
parent
32c41a12
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#54578
passed
5 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
TurTLE/_code.py
+6
-0
6 additions, 0 deletions
TurTLE/_code.py
pc_host_info.py
+6
-2
6 additions, 2 deletions
pc_host_info.py
with
12 additions
and
2 deletions
TurTLE/_code.py
+
6
−
0
View file @
e6992db0
...
@@ -664,8 +664,14 @@ class _code(_base):
...
@@ -664,8 +664,14 @@ class _code(_base):
# output file
# output file
if
not
type
(
out_file
)
==
type
(
None
):
if
not
type
(
out_file
)
==
type
(
None
):
script_file
.
write
(
'
#SBATCH -o
'
+
out_file
+
'
\n
'
)
script_file
.
write
(
'
#SBATCH -o
'
+
out_file
+
'
\n
'
)
# set up environment
script_file
.
write
(
'
#SBATCH --get-user-env
\n
'
)
script_file
.
write
(
'
#SBATCH --partition={0}
\n
'
.
format
(
script_file
.
write
(
'
#SBATCH --partition={0}
\n
'
.
format
(
self
.
host_info
[
'
environment
'
]))
self
.
host_info
[
'
environment
'
]))
if
'
account
'
in
self
.
host_info
.
keys
():
script_file
.
write
(
'
#SBATCH --account={0}
\n
'
.
format
(
self
.
host_info
[
'
account
'
]))
nb_cpus_per_node
=
self
.
host_info
[
'
deltanprocs
'
]
nb_cpus_per_node
=
self
.
host_info
[
'
deltanprocs
'
]
assert
isinstance
(
nb_cpus_per_node
,
int
)
\
assert
isinstance
(
nb_cpus_per_node
,
int
)
\
...
...
This diff is collapsed.
Click to expand it.
pc_host_info.py
+
6
−
2
View file @
e6992db0
...
@@ -29,8 +29,9 @@ host_info = {'type' : 'pc'}
...
@@ -29,8 +29,9 @@ host_info = {'type' : 'pc'}
# {'type' : info_template_type,
# {'type' : info_template_type,
# 'MPI' : info_template_MPI,
# 'MPI' : info_template_MPI,
# 'environment' : info_template_environment,
# 'environment' : info_template_environment,
# 'deltanprocs' : info_template_deltanprocs
# 'deltanprocs' : info_template_deltanprocs,
# 'mail_address': info_template_mail_address}
# 'mail_address': info_template_mail_address,
# 'account' : info_template_account}
# info_template_type can be one of:
# info_template_type can be one of:
# 'pc' --- jobs run interactively
# 'pc' --- jobs run interactively
...
@@ -50,3 +51,6 @@ host_info = {'type' : 'pc'}
...
@@ -50,3 +51,6 @@ host_info = {'type' : 'pc'}
# info_template_mail_address, relevant for clusters,
# info_template_mail_address, relevant for clusters,
# is the contact e-mail address placed in the job scripts.
# is the contact e-mail address placed in the job scripts.
# info_template_account, relevant for some clusters,
# is the name of the account to be budgeted for the job.
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