<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>File Operations :: AY的文档</title>
    <link>https://ops.docs.72602.space/zh/csp/zhejianglab/slurm/cheatsheet/file_operations/index.html</link>
    <description>文件分发 sbcast 用于将文件从提交节点分发到计算节点。它特别适用于需要将大量或较大的数据文件分发到多个计算节点的情况，能够减少分发时间并提高效率。 特性 快速分发文件：将文件快速复制到作业分配的所有计算节点，避免手动分发文件的麻烦。比传统的 scp 或 rsync 更快，尤其是在分发到多个节点时。 简化作业脚本：自动处理文件分发，使作业脚本更简洁。 提高效率：通过并行传输提高文件分发速度，尤其是对大文件或多个文件的分发。 用例 单独使用 sbcast &lt;source_file&gt; &lt;destination_path&gt; 嵌入作业脚本 #!/bin/bash #SBATCH --job-name=example_job #SBATCH --output=example_job.out #SBATCH --error=example_job.err #SBATCH --partition=compute #SBATCH --nodes=4 # 使用 sbcast 将文件分发到每个节点的 /tmp 目录 sbcast data.txt /tmp/data.txt # 执行你的程序，使用分发的文件 srun my_program /tmp/data.txt 文件收集 重定向 在提交作业时，可以使用 #SBATCH –output 和 #SBATCH –error 指令将标准输出和标准错误重定向到指定文件&#xA;#SBATCH --output=output.txt #SBATCH --error=error.txt 或者&#xA;sbatch -N2 -w &#34;compute[01-02]&#34; -o result/file/path xxx.slurm 手动发送目标地址 在提交作业时，在作业中使用 scp 或 rsync 将文件从计算节点复制到提交节点</description>
    <generator>Hugo</generator>
    <language>zh</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/zh/csp/zhejianglab/slurm/cheatsheet/file_operations/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>