Bin,
I think that what you’re looking for is called "Matching OR". Here is the text 
from the sbatch man page under constraints:

Matching OR
If only one of a set of possible options should be used for all allocated 
nodes, then use the OR operator and enclose the options within square brackets. 
For example: "--constraint=[rack1|rack2|rack3|rack4]" might be used to specify 
that all nodes must be allocated on a single rack of the cluster, but any of 
those four racks can be used.

So, you would want something like this:

sbatch -C [YEAR2012|YEAR2013|YEAR2014] batch.sh

Hope that helps,
Mike Robbert
Colorado School of Mines

> On Jul 7, 2016, at 11:33 AM, Chen, Bin <bch...@fsu.edu> wrote:
> 
> 
> Hi,
> 
> I have a partition with intel nodes of different years, with features 
> YEAR2012, YEAR2013, YEAR2014, respectively.
> 
> How to configure the system to have jobs submitted to this partition not 
> mixing nodes of different years?
> Say, If I submit a job asking for 3 different nodes, I want all nodes to be 
> of the same year.
> (But I do not want to specify which year I want).
> 
> Thank you very much!
> 
> BIN CHEN
> HPC Application Specialist
> Research Computing Center
> Florida State University

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to