如何将作业提交到PBS中的特定节点 [英] How to submit a job to a specific node in PBS

查看:1351
本文介绍了如何将作业提交到PBS中的特定节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将作业发送到PBS/TORQUE中的特定节点? 我认为您必须在节点之后指定节点名称.

How do I send a job to a specific node in PBS/TORQUE? I think you must specify the node name after nodes.

#PBS -l nodes=abc

但是,这似乎不起作用,我不确定为什么. 在 PBS上提出了这个问题,并指定要使用的节点

However, this doesn't seem to work and I'm not sure why. This question was asked here on PBS and specify nodes to use

这是我的示例代码

#!/bin/bash
#PBS nodes=node9,ppn=1,
hostname
date 
echo "This is a script"
sleep 20    # run for a while so I can look at the details
date

此外,如何检查作业在哪个节点上运行?我在某处看到$PBS_NODEFILE显示了详细信息,但它似乎对我不起作用.

Also, how do I check which node the job is running on? I saw somewhere that $PBS_NODEFILE shows the details, but it doesn't seem to work for me.

推荐答案

您可以这样做:

#PBS -l nodes=<node_name>

您还可以指定处理器数量:

You can also specify the number of processors:

#PBS -l nodes=<node_name>:ppn=X

或者您可以请求其他指定或未指定的节点:

Or you can request additional nodes, specified or unspecified:

#PBS -l nodes=<node_name1>[:ppn=X][+<node_name2...]

这为您提供了多个特定节点.

That gives you multiple specific nodes.

#PBS -l nodes=<node_name>[:ppn=X][+Y[:ppn=Z]]

这会从该节点请求具有X个执行插槽的特定节点,再加上每个具有Z个执行插槽的Y个节点.

This requests the specific node with X execution slots from that node, plus an additional Y nodes with Z execution slots each.

仅请求多个节点和每个节点的执行插槽:

To simply request a number of nodes and execution slots per node:

注意:这仅适用于TORQUE/Moab.它可能对其他PBS资源管理器/调度程序有效,也可能无效.

这篇关于如何将作业提交到PBS中的特定节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆