简体   繁体   English

Slurm-传输文件,本地暂存

[英]Slurm- transfer files, local scratch

How can I transfer the created files on the local scratch of each node (without logging into them) to somewhere else in Slurm?如何将每个节点的本地暂存上创建的文件(无需登录)传输到 Slurm 中的其他地方? I am looking for something like a reversed sbcast .我正在寻找类似反向sbcast 的东西。

Slurm's reversed sbcast is sgather . Slurm 的反向sbcastsgather An example on how to use it with 10 tasks launched on 5 different nodes关于如何在 5 个不同节点上启动的 10 个任务中使用它的示例

$ salloc -N 5 --exclusive
$ srun -n 10 -N 5 bash -c 'echo $(hostname):$SLURM_JOB_ID:$SLURM_TASK_PID >> /tmp/file'
$ sgather /tmp/file ./file
$ ls
file.node1273 file.node1274 file.node1275 file.node1276 file.node1285
$ cat file.node1273
node1273:246987:1777529
node1273:246987:1777528

See man 1 sgather for details about options.有关选项的详细信息,请参阅man 1 sgather

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM