Grid
|
Grid Computing at NERSC: Job SubmissionTable of Contents:How to submit a grid job to NERSCThe following NERSC resources support job submission via Grid interfaces. Remote job submission is based on Globus 4.0 Pre-Webservices GRAM.Jobs can be submitted either to the fork jobmanager (default) which will fork and execute the job immediately, or to the batch system jobmanager which interfaces with the underlying batch queue.
1. Initialize your grid certificate: % grid-proxy-init Here we use /bin/hostname as the test job, davinci.nersc.gov as the target host, and PBS as the jobmanager. We will use globus-job-submit to submit jobs to the batch system. The syntax for this command is: Syntax : globus-job-submit [-help] <contact string> [-np N] <executable> [<arg>...] Use -help to display full usage.To submit the job: % globus-job-submit davinci.nersc.gov/jobmanager-pbs /bin/hostname https://davinci.nersc.gov:60001/14658/1182211679/ % globus-job-status https://davinci.nersc.gov:60001/14658/1182211679/ DONE % globus-job-get-output https://davinci.nersc.gov:60001/14658/1182211679/ davinci
% globus-job-clean https://davinci.nersc.gov:60001/14658/1182211679/
WARNING: Cleaning a job means:
- Kill the job if it still running, and
- Remove the cached output on the remote resource
Are you sure you want to cleanup the job now (Y/N) ? Y
Cleanup successful.
Here we use: /bin/hostname as the test job and davinci.nersc.gov as the target host, and % globus-job-run davinci.nersc.gov/jobmanager /bin/hostname davinci Notes
How to submit a parallel jobIn order to take advantage of parallel MPP resources at NERSC (Franklin, Jacquard, Bassi, DaVinci) you will need to first build your MPI application on the appropriate platform, and create a job specification using the Globus RSL. Assuming your parallel application is called cpi, a very simple RSL file to set up a 4 way run would look something like this:& (count=4) (jobtype=mpi) (directory=/home/your_home_dir) (executable=/home/your_home_dir/bin/cpi) (stdout=x-gass-cache://$(GLOBUS_GRAM_JOB_CONTACT)stdout anExtraTag) (stderr=x-gass-cache://$(GLOBUS_GRAM_JOB_CONTACT)stderr anExtraTag)If this file is called cpi.rsl, you would submit your job as follows: % globusrun -r jacquardgrid.nersc.gov/jobmanager-pbs -f cpi.rsl -b globus_gram_client_callback_allow successful GRAM Job submission successful https://jacquardgrid.nersc.gov:60001/8827/1182377532/ GLOBUS_GRAM_PROTOCOL_JOB_STATE_PENDING
|
![]() |
Page last modified: Mon, 04 Aug 2008 22:45:03 GMT Page URL: http://www.nersc.gov/nusers/services/Grid/jobs.php Web contact: webmaster@nersc.gov Computing questions: consult@nersc.gov Privacy and Security Notice |
![]() |