Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AIG-public
Cobalt
Commits
c6fa4f4e
Commit
c6fa4f4e
authored
Nov 15, 2016
by
Paul Rich
Browse files
fixing errors that were causing failures in cdb messages
parent
1651a4c5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/Components/system/CraySystem.py
View file @
c6fa4f4e
...
@@ -17,6 +17,7 @@ from Cobalt.Components.system.CrayNode import CrayNode
...
@@ -17,6 +17,7 @@ from Cobalt.Components.system.CrayNode import CrayNode
from
Cobalt.Components.system.base_pg_manager
import
ProcessGroupManager
from
Cobalt.Components.system.base_pg_manager
import
ProcessGroupManager
from
Cobalt.Exceptions
import
ComponentLookupError
from
Cobalt.Exceptions
import
ComponentLookupError
from
Cobalt.Exceptions
import
JobNotInteractive
from
Cobalt.Exceptions
import
JobNotInteractive
from
Cobalt.Exceptions
import
JobValidationError
from
Cobalt.DataTypes.ProcessGroup
import
ProcessGroup
from
Cobalt.DataTypes.ProcessGroup
import
ProcessGroup
from
Cobalt.Util
import
compact_num_list
,
expand_num_list
from
Cobalt.Util
import
compact_num_list
,
expand_num_list
from
Cobalt.Util
import
init_cobalt_config
,
get_config_option
from
Cobalt.Util
import
init_cobalt_config
,
get_config_option
...
@@ -1229,9 +1230,16 @@ class CraySystem(BaseSystem):
...
@@ -1229,9 +1230,16 @@ class CraySystem(BaseSystem):
'''
'''
#Right now this does nothing. Still figuring out what a valid
#Right now this does nothing. Still figuring out what a valid
#specification looks like.
#specification looks like.
# mode on this system defaults to script.
mode
=
spec
.
get
(
'mode'
,
None
)
if
((
mode
is
None
)
or
(
mode
==
False
)):
spec
[
'mode'
]
=
'script'
if
spec
[
'mode'
]
not
in
[
'script'
,
'interactive'
]:
raise
JobValidationError
(
"Mode %s is not supported on Cray systems."
%
mode
)
# FIXME: Pull this out of the system configuration from ALPS ultimately.
# FIXME: Pull this out of the system configuration from ALPS ultimately.
# For now, set this from config for the PE count per node
# For now, set this from config for the PE count per node
# nodes
= int(spec['node
s
'])
spec
[
'nodecount'
]
=
int
(
spec
[
'node
count
'
])
# proccount = spec.get('proccount', None)
# proccount = spec.get('proccount', None)
# if proccount is None:
# if proccount is None:
# nodes *
# nodes *
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment