test

Very Quick Start

This is a very quick start guide for RA and Mio.

We have put together simple procedure to download, build, and run Fortran and C examples. The procedure given below can be used as a quick start for running parallel applications on RA or Mio. It can also be used as a test if you suspect that your environment is not working properly

You will download a tar file that contains a C example, c_ex00.c, a Fortran example f_ex00.f, a makefile and a runfile. After the files are extracted from the tar file you will run make and then submit your parallel job to the queue.

You can use the files "runfile" and "makefile" as templates for your programs.

Procedure

What you need to type (Copy/Paste) is in red.

(1) On "ra.mines.edu" or "mio.mines.edu", create a new empty directory.

mkdir guide

(2) Go to the directory.

cd guide

(3) Download the files

wget -o wget.out http://hpc.mines.edu/quickstart/guideFiles/quick.tar

(3b) You might want to do an "ls" to make sure the file "quick.tar" actually downloaded.

(4) Untar the files

tar -xf quick.tar

(4b) You might want to do an "ls" to make sure the files c_ex00.c, f_ex00.f, makefile, and runfile.

(5) Make the executables

make

Submitting jobs on RA

(6) Submit your job, replacing "123456789" with your account string.

qsub runfile -A 123456789

Submitting jobs on Mio

(6) On Mio you don't need an account number. Submit your job using qsub instead of msub

qsub runfile 

After a few moments your job will run and put the output into the file "stdout." You will have something like the following:

[tkaiser@ra ~/guide]$ls -lt
total 732
-rw-------  1 tkaiser tkaiser    958 Jun 17 14:54 stdout
-rw-rw-r--  1 tkaiser tkaiser     18 Jun 17 14:54 mynodes.9637.ra.local
-rw-------  1 tkaiser tkaiser      0 Jun 17 14:54 stderr
-rwxrwxr-x  1 tkaiser tkaiser  57210 Jun 17 14:54 c_ex00
-rwxrwxr-x  1 tkaiser tkaiser 648987 Jun 17 14:54 f_ex00
-rw-rw-r--  1 tkaiser tkaiser    409 Jun 17 14:54 wget.out
-rw-rw-r--  1 tkaiser tkaiser  10240 Jun 17 14:53 quick.tar
-rw-r--r--  1 tkaiser tkaiser    235 Jun 17 14:53 makefile
-rw-r--r--  1 tkaiser tkaiser    458 Jun 17 14:37 runfile
-rw-r--r--  1 tkaiser tkaiser    673 Apr  9 11:58 f_ex00.f
-rw-r--r--  1 tkaiser tkaiser    758 Apr  9 11:46 c_ex00.c
[tkaiser@ra ~/guide]$ 

with the file stdout containing something like:

[tkaiser@ra ~/guide]$cat stdout
Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.
running the C example
Hello from 0 of 8 on compute-5-7.local
Hello from 2 of 8 on compute-5-7.local
Hello from 3 of 8 on compute-5-7.local
Hello from 5 of 8 on compute-5-7.local
Hello from 6 of 8 on compute-5-7.local
Hello from 1 of 8 on compute-5-7.local
Hello from 4 of 8 on compute-5-7.local
Hello from 7 of 8 on compute-5-7.local
running the Fortran example
 Hello from            2  of            8  on compute-5-7.local
 Hello from            4  of            8  on compute-5-7.local
 Hello from            1  of            8  on compute-5-7.local
 Hello from            0  of            8  on compute-5-7.local
 Hello from            6  of            8  on compute-5-7.local
 Hello from            7  of            8  on compute-5-7.local
 Hello from            3  of            8  on compute-5-7.local
 Hello from            5  of            8  on compute-5-7.local
[tkaiser@ra ~/guide]$ 

The examples and run script can be downloaded directly from:

The makefile can be downloaded from:

Note, however that Copy/Paste of makefiles does not work in most enviornments. Makefiles contain tabs which often don't get preserved when doing a Copy/Paste.

If you have questions please contact: tkaiser@mines.edu