Re: [OMPI users] Problem running an MPI program through the PBS manager
On Mon, Sep 26, 2016 at 2:04 PM, Gilles Gouaillardet
The node is defined in the PBS config, however it is not part of the
allocation (e.g. job) so it cannot be used, and hence the error message.
In your PBS script, you do not need -np nor -host parameters to your
Open MPI mpirun will automatically detect it is launched from a PBS job,
and get the needed information directly from PBS.
FWIW, the list of allocated nodes is in the file $PBS_NODEFILE, but you
should not need that.
On Monday, September 26, 2016, Mahmood Naderan mahmood...@gmail.com
When I run an MPI command through the terminal the programs runs fine on
the compute node specified in hosts.txt.
However, when I put that command in a PBS script, if says that the
compute node is not defined in the job manager’s list. However, that node
is actually defined in the job manager.
Please see the output below
mahmood@cluster:tran-bt-o-40$ cat submit.tor
#PBS -q default
#PBS -j oe
#PBS -l nodes=1:ppn=15
#PBS -N job-1
#PBS -o /home/mahmood/tran-bt-o-40/cc-bt-cc-163-20.out
/share/apps/computer/openmpi-2.0.0/bin/mpirun -hostfile hosts.txt -np 15
A hostfile was provided that contains at least one node not
present in the allocation:
If you are operating in a resource-managed environment, then only
nodes that are in the allocation can be used in the hostfile. You
may find relative node syntax to be a useful alternative to
specifying absolute node names see the orte_hosts man page for
mahmood@cluster:tran-bt-o-40$ cat hosts.txt
mahmood@cluster:tran-bt-o-40$ pbsnodes -l all
As you can see, compute-0-1 has free cores and it is defined for the
users mailing list
_______________________________________________ users mailing list email@example.com https://rfd.newmexicoconsortium.org/mailman/listinfo/users