SLURM作业脚本到rsync文件

问题描述

是否可以提交SLURM脚本来传输文件
我在命令栏上使用了 rsync ,但是我不知道如何使用SLURM脚本执行类似的操作。

#!/bin/bash
#SBATCH --job-name=transfer             # Job name
#SBATCH --mail-type=END,FAIL                   # Mail events (NONE,BEGIN,END,FAIL,ALL)
#SBATCH [email protected]
#SBATCH --ntasks=3          # Run N tasks
#SBATCH --cpus-per-task=1   # Number of cpu cores per task
#SBATCH --mem-per-cpu= 10000# Memory per thread
#SBATCH --time= 100:00:00     # Time limit hrs:min:sec

What command here?

解决方法

您的命令将只是您要​​运行的任何rsync命令,即 public async Task LoadUserData() { try { if (dataLoading) { // Need to wait the previous request } if (dataLoaded) return; dataLoading = true; User = await httpClient.GetFromJsonAsync<User>("users",options); } catch (Exception e) { OnException(e); } finally { if (User != null) dataLoaded = true; dataLoading = false; } }

除非您正在使用rsync [OPTION...] SRC... [DEST]--ntasks=3使用多个CPU,否则您可能不希望xargs