Skip to content

Commit c5544b0

Browse files
authored
DPL: support submitting directly to slurm (#14728)
Without this, different jobs on the same machine will cross-talk due to possible lack of isolation in linux abstract sockets.
1 parent 596f0db commit c5544b0

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)