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
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
Here is my sample code
#!/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
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.
#!/bin/bash
. I am wondering if bash interprets#PBS
as a comment... – Cowslipqstat -n1
gives you the information on which node your jobs are running. – Epicure#PBS
as a comment, butqsub
recognizes it as a directive. That's exactly why that syntax was chosen. Removing the#!/bin/bash
won't help. – Stationery