Download Alabama Supercomputer Authority Alabama Supercomputer Authority
Transcript
HPC User Manual - 9th Edition Working with the Queue System Another function typically found in scripts submitted to the queue is copying the work over to be done on the /scratch drive. The user home directories are visible to all compute nodes, but these directories are on a lower performance file system. If the calculation does a large amount of accessing data on the disk drive, it will run faster on the high performance /scratch file system. Here is an example of a script that utilizes /scratch #!/bin/sh # # Sample script for submitting jobs to the queue system # This script shows how to run the calculation # in the /scratch directory # # Replace the USER name in this script "asndcy" # with your own user name. # Replace the program name "mandy_gcc" with your own program name. # Replace the input file name "test1.in" with your own input name. # # This script must be made executable like this # chmod +x my_script # # Submit this script to the queue with a command like this # run_script my_script # put in my user name USER=asndcy # create a directory on /scratch mkdir /scratch/$USER # copy the program and input files to scratch cp mandy_gcc /scratch/$USER cp test1.in /scratch/$USER # run the program cd /scratch/$USER ./mandy_gcc test1 # copy the results back to my home directory cp test1.bmp /home/$USER 73