srun hostname -n
时间: 2024-04-24 07:27:20 浏览: 130
引用\[1\]:srun hostname -s | sort -n >slurm.hosts
引用\[2\]:srun -p compute -w c1 python3 /software/pipeline/test/test.py
引用\[3\]:srun -n24 --gres=gpu:8 --ntasks-per-node=8 python train.py
问题: srun hostname -n 是什么意思?
回答: srun hostname -n是一个命令,用于在运行的节点上获取主机名。其中,-n参数指定了要运行的进程数。在这个命令中,它的作用是获取正在运行的节点的主机名,并将结果按照数字顺序排序后保存到slurm.hosts文件中。\[1\]
#### 引用[.reference_title]
- *1* [Line by line | 超算平台交作业代码和注意事项](https://blog.csdn.net/weixin_43707486/article/details/125408548)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [slurm作业提交系统常用命令](https://blog.csdn.net/u010797364/article/details/120724501)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Pytorch多机多卡分布式训练](https://blog.csdn.net/qq_39852676/article/details/107407046)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文