The file
example.pbs script is provided to assist you to launch on a PBS client system. Adjust it as necessary to meet your needs.
The example.pbs script performs the following three operations when you run it:
Job Setup
- runstudy is executed with the
-dryrun option, to determine if any of the resultant commands begins with any of
doe, optim or
rb. If
doe, optim, or
rb is encountered, the SJM starts on each node in the cluster. Otherwise, the script skips to the study execution operation.
- A local copy of the SJM is created on each required node, to prevent database corruption, and then started. By default, it forks into the background when launched.
- The SJM on the primary execution node is told that its pool of nodes to distribute jobs to is the other nodes in the cluster.
Study execution
The study is executed using the command
runstudy <studyname>
Job clean-up
- For each node, the SJM is stopped and the local instance of it is removed. For diagnostic purposes we may wish to keep any log files in the event of failures.
- Temporary files and folders are removed.