Part 3 - Job submission: AMBER
Posted June 30, 2010 - 12:42pm
From this page onward, we're going to do more job submission exercises with serious jobs. In this part, we're going to experiment with an application template, AMBER, which is deployed on the NGS.
We're going to try job submission to the job queue which is controled by a job manager.
Instead of using globus-job-run command, we use globus-job-submit to put the job on the queue first, wait until it's processed and executed, and then get back the result.
Before actually submitting the job, we need to prepare the input data files required by the AMBER appliation. Fortunately, NGS provided a set of example input data files for this application, and we can just copy them into our home directory and use them. To keep the home directory clean, we create a subdirectory amber for this application. Let's do this on RAL.
-bash-3.00$ mkdir amber
-bash-3.00$ cd amber
-bash-3.00$ cp /apps/amber/examples/serial_example/* .
-bash-3.00$ ls -l
total 316
-rw-r--r-- 1 ngs0383 ngs0383 92959 Nov 13 10:41 crd.md.23
-rw-r--r-- 1 ngs0383 ngs0383 17642 Nov 13 10:41 cytosine.out.save
-rw-r--r-- 1 ngs0383 ngs0383 321 Nov 13 10:41 in.md
-rw-r--r-- 1 ngs0383 ngs0383 193748 Nov 13 10:41 prmtop
-bash-3.00$ cd amber
-bash-3.00$ cp /apps/amber/examples/serial_example/* .
-bash-3.00$ ls -l
total 316
-rw-r--r-- 1 ngs0383 ngs0383 92959 Nov 13 10:41 crd.md.23
-rw-r--r-- 1 ngs0383 ngs0383 17642 Nov 13 10:41 cytosine.out.save
-rw-r--r-- 1 ngs0383 ngs0383 321 Nov 13 10:41 in.md
-rw-r--r-- 1 ngs0383 ngs0383 193748 Nov 13 10:41 prmtop
let's submit the example AMBER job to the queue. The executable of this application is /usr/ngs/AMBER_10_0, and the arguments following it specify the parameters required by this application. And note that we specify cy.out as our output file under the amber subdirectory.
-bash-3.00$ globus-job-submit ngs.rl.ac.uk/jobmanager-lsf -d /home/ngs0383/amber /usr/ngs/AMBER_10_0 sander -O -i in.md -c crd.md.23 -o cy.out -p prmtop
https://ngs.rl.ac.uk:50043/29402/1224687026/
https://ngs.rl.ac.uk:50043/29402/1224687026/
The returned URI https://ngs.rl.ac.uk:50043/29402/1224687026/ is an ID that we must use to query the status of the job running and to get the result. To query the job running status (note that you need to put the URI from your console rather than copy this one):
-bash-3.00$ globus-job-status https://ngs.rl.ac.uk:50043/29402/1224687026/
DONE
DONE
Since the job is finished, we can get the result now:
-bash-3.00$ globus-job-get-output https://ngs.rl.ac.uk:50043/29402/1224687026/
This application does not give any output, because we specified to save the output into file cy.out under the amber subdirectory. Let's check it's there:
-bash-3.00$ ls -l cy.out
-rw-r--r-- 1 ngs0383 ngs0383 285 Nov 13 12:23 cy.out
-rw-r--r-- 1 ngs0383 ngs0383 285 Nov 13 12:23 cy.out
Finally, we need to clean the cached result for the job:
-bash-3.00$ globus-job-clean https://ngs.rl.ac.uk:50043/29402/1224687026/
- Login to post comments

