Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Weber
load_leveller
Commits
f5c6f5ad
Commit
f5c6f5ad
authored
Oct 22, 2019
by
Lukas Weber
Browse files
fix automatic deduction of system type
parent
a39736e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/loadleveller/clusterutils.py
View file @
f5c6f5ad
...
...
@@ -52,19 +52,19 @@ def generate_batchscript(sysinfo, *args):
if
sysinfo
==
'claix18'
:
return
generate_batchscript_claix18
(
*
args
)
else
:
raise
Exception
(
'unknown system type {}'
.
format
(
sysinfo
))
raise
Exception
(
'unknown system type
"
{}
"
'
.
format
(
sysinfo
))
def
determine_system
():
sysinfo
=
os
.
environ
.
get
(
'MCLL_SYSTEM_INFO'
)
if
sysinfo
==
""
:
if
sysinfo
==
None
:
import
socket
hostname
=
socket
.
gethostname
()
if
hostname
.
endswith
(
'.hpc.itc.rwth-aachen.de'
):
sysinfo
=
'claix18'
if
not
sysinfo
in
valid_systems
:
sysinfo
=
'local'
raise
Exception
(
'unknown system type "{}"'
.
format
(
sysinfo
))
return
sysinfo
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment