Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTDAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
CTDAS
CTDAS
Commits
34ae25b6
Commit
34ae25b6
authored
12 years ago
by
Peters, Wouter
Browse files
Options
Downloads
Patches
Plain Diff
rolled back adding of flag
parent
fb908204
Branches
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
da/platform/cartesius.py
+6
-6
6 additions, 6 deletions
da/platform/cartesius.py
with
6 additions
and
6 deletions
da/platform/cartesius.py
+
6
−
6
View file @
34ae25b6
...
...
@@ -83,11 +83,11 @@ class CartesiusPlatform(Platform):
"""
## This is a set of dummy names, to be replaced by values from the dictionary
\n
"""
+
\
"""
## Please make your own platform specific template with your own keys and place it in a subfolder of the da package.
\n
"""
+
\
"""
##
\n
"""
+
\
"""
#
$
-J jobname
\n
"""
+
\
"""
#
$
-p normal
\n
"""
+
\
"""
#
$
-n jobnodes
\n
"""
+
\
"""
#
$
-t jobtime
\n
"""
+
\
"""
#
$
-o joblog
\n
"""
+
\
"""
#
SBATCH
-J jobname
\n
"""
+
\
"""
#
SBATCH
-p normal
\n
"""
+
\
"""
#
SBATCH
-n jobnodes
\n
"""
+
\
"""
#
SBATCH
-t jobtime
\n
"""
+
\
"""
#
SBATCH
-o joblog
\n
"""
+
\
"""
module load python
\n
"""
+
\
"""
\n
"""
...
...
@@ -124,7 +124,7 @@ class CartesiusPlatform(Platform):
print
'
jobid
'
,
jobid
else
:
cmd
=
[
"
sbatch
"
,
jobfile
]
logging
.
info
(
"
A new
task
will be s
tar
ted (%s)
"
%
cmd
)
logging
.
info
(
"
A new
job
will be s
ubmit
ted (%s)
"
%
cmd
)
output
=
subprocess
.
Popen
(
cmd
,
stdout
=
subprocess
.
PIPE
).
communicate
()[
0
]
;
logging
.
info
(
output
)
jobid
=
output
.
split
()[
-
1
]
...
...
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