How to specify multiple nodes in PBS Pro
![David Canon](https://us.v-cdn.net/6038102/uploads/defaultavatar/nLP0QHCLH24WL.jpg)
Hello,
I’m trying to run an application on specific nodes (using PBS Pro), but cannot get the correct syntax.
The following works for running on any two nodes:
#PBS -l select=2,ncpus=4:mpiprocs=4:mem=60gb
The following works for running on one specific node
#PBS -l select=1,ncpus=20:mpiprocs=20:mem=60gb:host=myNodeName
The following DO NOT work for running on two specific nodes
#PBS -l select=2,ncpus=4:mpiprocs=4:mem=60gb:host=myNodeName1:host=myNodeName2
#PBS -l select=2,ncpus=4:mpiprocs=4:mem=60gb:host=myNodeName1,myNodeName2
#PBS -l select=2,ncpus=4:mpiprocs=4:mem=60gb:host=myNodeName1+myNodeName2
I’ve tried many other permutations of syntax, but cannot get it to work
Could you give me the correct syntax to submit to more than one specific node?
Answers
-
Hi David,
Our PBS technical support team will get in touch with you regarding this request. Let them know if you have any followup questions.
0 -
Hi David, I think you got your answer in Support Case CS0465848, where I commented on the proper syntax to get this to work:
This syntax can be a bit tricky, but you almost have it. Try this:
#PBS -l select=1:ncpus=4:mpiprocs=4:mem=60gb:host=myNodeName1+1:ncpus=4:mpiprocs=4:mem=60gb:host=myNodeName2
The "+" sign makes this a compound select statement, which you can use to define multiple chunks (select=) but with each chunk or groups of chunks calling for different quantities of resources. A key thing to notice is the 2nd select statement only has the chunk quantity, in this case "1", and not the string "select".0