Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
cc366861
Commit
cc366861
authored
May 07, 2020
by
Michael Ott
Browse files
Also parse SLURM_NODELIST if SLURM_JOB_NODELIST is not set.
parent
9cfa14d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/dcdbslurmjob/dcdbslurmjob.cpp
View file @
cc366861
...
@@ -231,9 +231,13 @@ int main(int argc, char** argv) {
...
@@ -231,9 +231,13 @@ int main(int argc, char** argv) {
if
(
userId
==
""
)
if
(
userId
==
""
)
userId
=
getEnv
(
"SLURM_JOB_USER"
);
userId
=
getEnv
(
"SLURM_JOB_USER"
);
if
(
nodelist
==
""
)
if
(
nodelist
==
""
)
{
nodelist
=
getEnv
(
"SLURM_JOB_NODELIST"
);
nodelist
=
getEnv
(
"SLURM_JOB_NODELIST"
);
if
(
nodelist
==
""
)
{
nodelist
=
getEnv
(
"SLURM_NODELIST"
);
}
}
std
::
cout
<<
"JOBID = "
<<
jobId
<<
std
::
endl
;
std
::
cout
<<
"JOBID = "
<<
jobId
<<
std
::
endl
;
std
::
cout
<<
"USER = "
<<
userId
<<
std
::
endl
;
std
::
cout
<<
"USER = "
<<
userId
<<
std
::
endl
;
std
::
cout
<<
"START = "
<<
ts
<<
std
::
endl
;
std
::
cout
<<
"START = "
<<
ts
<<
std
::
endl
;
...
...
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