Download PBS Pro User Guide
Transcript
98 Chapter 8 Advanced PBS Features 8.6.3 PBS File Staging through GASS The stagein/stageout feature of "Globus-aware" PBS works with Global Access to Secondary Storage (GASS) software. Given a stagein directive, localfile@host:inputfile. PBS will take care of copying inputfile at host over to localfile at the executing Globus machine. Same with a stageout directive, localfile@host:outputfile. PBS will take care of copying the localfile on the executing Globus host over to the outputfile at host. Globus mechanisms are used for transferring files to hosts that run Globus; otherwise, pbs_rcp or cp is used. This means that if the host as given in the argument, runs Globus, then Globus communication will be opened to that host. 8.6.4 Limitation PBS does not currently support "co-allocated" Globus jobs where two or more jobs are simultaneously run (distributed) over two or more Globus resource managers. 8.6.5 Examples Here are some examples of using PBS with Globus: Example 1: If you want to run a single processor job on globus gatekeeper mars.pbspro.com/jobmanager-fork then you could create a pbs script like the following example: % cat job.script #PBS -l site=globus:mars.pbspro.com/jobmanager-fork echo "‘hostname‘:Hello world! Globus style." Upon execution, this will give the sample output: mars:Hello world! Globus style. Example 2: If you want to run a multi-processor job on globus gatekeeper pluto.pbspro.com/jobmanager-fork with cpu count set to 4, and shipping the architecture compatible executable, mpitest over to the Globus host pluto for execution, then compose a script and submit as follows: