Note:
Run the following script before submitting your first batch job. You will not need to run it again unless the files it creates are inadvertently deleted or changed:
/ctc/tools/setup_ssh_mpd_linux.sh
This script creates ssh keys and a required MPI file. MPICH2 is the supported MPI implementation on the Linux clusters. Complete details on what the script does are in the
Appendix below:
Running Jobs
All jobs must be run on compute nodes, not on the login nodes. Compute machines are only accessible via the Velocity Scheduler (vsched) batch system. The same batch system controls jobs on all CTC Linux and Windows systems. Briefly, to use any of the compute machines, you must first:
- Create an XML file, describing job parameters like number of minutes and interactive vs. batch
- Write a script in a language like tcsh, giving the commands you wish to run on the primary node (for batch runs)
- Submit the XML file (and the associated batch script) to the scheduler using vsched -s
- You do not need to register your password with vsched to run on the Linux machines. You must do this if you intend to submit jobs to the Windows machines or from a Windows login node.
- All other vsched commands can be issued from both the Windows and Linux environments.
Sample Files for a Parallel Batch Job
-
- source code, hw.c
- XML file, hw.xml
- tcsh script, hwer
- Note: The .txt extension was added to all three files for viewing purposes only.
- Always verify that the path indicated in the <run> element of the XML file is constructed properly for Linux.
Appendix
The script /ctc/tools/setup_ssh_mpd_linux.sh performs the steps detailed below.
Note: you do not need to issue any of the commands illustrated here, they are done for you automatically when you run the script.
- On linuxlogin1.tc.cornell.edu or linuxlogin2.tc.cornell.edu, creates the directory ~<your_userid>/.ssh
- cd ~<your_userid>
- mkdir .ssh
- cd .ssh
- Creates an SSH keypair to automate logons .
- ssh-keygen -b 1024 -t dsa -C <your_userid>
Running the script creates the following files:
$HOME\.ssh\authorized_keys
$HOME\.ssh\id_dsa
$HOME\.ssh\id_dsa.pub
$HOME\.mpd.conf