Skip to content

Commit 0348c26

Browse files
committed
DPL: support submitting directly to slurm
Without this, different jobs on the same machine will cross-talk due to possible lack of isolation in linux abstract sockets.
1 parent d56b3e9 commit 0348c26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Framework/Core/src/ChannelSpecHelpers.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ std::string ChannelSpecHelpers::defaultIPCFolder()
339339
if (channelPrefix) {
340340
return fmt::format("@dpl_{}_", channelPrefix);
341341
}
342+
channelPrefix = getenv("SLURM_JOB_ID");
343+
if (channelPrefix) {
344+
return fmt::format("@dpl_{}_", channelPrefix);
345+
}
342346
return "@";
343347
#else
344348
/// Find out a place where we can write the sockets

0 commit comments

Comments
 (0)