Introduction
This section will explain how to create job-submission scripts. The job-submission script is executed remotely using ssh/gsissh. This script submits a job onto NQS system and returns the job-ID. You have to write this script specifically for each cluster and each purpose.
The job-submission script executes a job submission command for NQS. There are several things you need to decide and state in the script.
- How many processors to request; the number of nodes and the number of processors within a node. These number is depended on the system and tasks you are going to run on the system.
- How long the job runs. You need to define a walltime of you jobs. The actual run-time of your tasks must be shorter than the walltime you set here. If your task runs until reaching the walltime, the job will be killed b NQS and ManyJobs won't know the termination of the task. Therefore, you should set the walltime to be the actual run-time of your longest task plus the pre and post process times.
- Queue name. There must be some choice of queue in the NQS.
- Allocation Name. The most of public cluster requires allocations to run jobs.
- Other settings. Any others you want to send to NQS.
Input and Return values
This script needs inputs: Cluster Nick-name, Your Host (localhost), Directory of ManyJobs scripts on localhost, and Name of DataBase File.
The return value is a Job Identification Number.
-------------------------------------------------------------------------