[Mauiusers] Re: Re: [torqueusers] how to forbid the user do not use torque submit job

Joshua Bernstein jbernstein at penguincomputing.com
Thu Jul 10 12:36:57 MDT 2008

rishi pathak wrote:
> In mpirun.pg <http://mpirun.pg>  somewhere at line number 106 you can 
> have a statement which checks for environment variable $PBS_NODEFILE and 
> if found proceeds further else exits with an error.
> if [ -z "$PBS_NODEFILE" ] ; then echo "Not Spawned through PBS so 
> exiting." ; exit 1 ; fi

Thats a cute trick, but what if the MPI stack he's using ships a binary? 
Say like OpenMPI?

In that case, I think he'll have to rename mpirun to something else and 
write a little wrapper much like you suggest above.

-Joshua Bernstein
Software Engineer
Penguin Computing

More information about the torqueusers mailing list