简体   繁体   English

如何使用slurm在特定节点上运行作业?

[英]How to run a job on a specific node using the slurm?

My original question is how to run the CVX toolbox (with academic license) on the cluster. 我最初的问题是如何在群集上运行CVX工具箱(带有学术许可证)。 I could not figure out a direct way of doing that and I have decided to tackle the problem in a different way. 我无法找到直接的方法,我决定以不同的方式解决问题。

The CVX license is hardware dependent and each academic license is tied to 4 hardwares. CVX许可证取决于硬件,每个学术许可证都与4个硬件相关联。 I want to add one of the nodes (maybe two) to the license list. 我想将其中一个节点(可能是两个)添加到许可证列表中。 For doing so, I need to run the CVX always on the same hardware or node (I know this might not be an efficient approach). 为此,我需要始终在相同的硬件或节点上运行CVX(我知道这可能不是一种有效的方法)。 Is there any way to do so? 有没有办法这样做?

If you are the administrator, you should defined a feature associated with the node(s) on which that software is installed (for instance feature=cvx , in slurm.conf ) and ask users to submit jobs with --constraint=cvx . 如果您是管理员,则应定义与安装该软件的节点关联的feature (例如feature=cvx slurm.conf ,在slurm.conf ),并要求用户使用--constraint=cvx提交作业。

If you are a regular user and cannot change the Slurm configuration, you can specify a specific node with --nodelist=... , or, if you need one among several, use --exclude=... with the list of all nodes that do not have CVX installed. 如果您是普通用户并且无法更改Slurm配置,则可以使用--nodelist=...指定特定节点,或者,如果您需要其中一个,请使用--exclude=...以及所有列表没有安装CVX的节点。

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

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