To login to TED do the following steps:

1. ssh username@ssh.ccv.brown.edu

enter your password

2. ssh ted

Compilers

For serial program use "gcc" compiler. For parallel program use "mpicc", "mpiCC" or "mpicxx" compilers (the last two are identical on TED). Convenient way to compile you program is to use Makefile.
Here is an example of a simple Makefile you may use on TED:

comm_path = /opt/mpich/gnu/bin/
# define what compiler to use LD = $(comm_path)/mpicxx CC = $(comm_path)/mpiCC cc = g++ # name the executable file EXECUTABLE = hello # define what options to use for compilations CFLAGS = -O2 # define what object files to link OBJECTS = hello.o sum.o $(EXECUTABLE): $(OBJECTS) $(LD) -o $(EXECUTABLE) $(OBJECTS) hello.o: hello.C $(CC) -o hello.o -c hello.C sum.o: sum.c $(cc) $(CFLAGS) -o sum.o -c sum.c clean: rm *.o

To compile your program run "make" command.

Submitting a Job for Execution on TED

Example of PBS script required for submitting a job on TED can be found on http://www.ccv.brown.edu/facilities/linux.html web page The example on this page is given for Linux Cluster DIZZY, however it works the same on TED Linux Cluster.

Monitoring running jobs

Use "showq" commands. Here is an example of typical output:

$showq

ACTIVE JOBS--------------------
JOBNAME            USERNAME      STATE  PROC   REMAINING            STARTTIME

12246                lgrinb    Running     8    00:01:00  Fri Jan 25 10:02:00

     1 Active Job        8 of  106 Processors Active (7.55%)
                         4 of   53 Nodes Active      (7.55%)

IDLE JOBS----------------------
JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME


0 Idle Jobs

BLOCKED JOBS----------------
JOBNAME            USERNAME      STATE  PROC     WCLIMIT            QUEUETIME
In the example the output of "showq" states that there is only one running job which uses 4 nodes (8 processors) out of 53 available nodes, this job was submitted by user "lgrinb". To learn more about the "showq" command type "showq -h" and the list of options will be displayed.
Another option is to use "qstat" command. Use "qstat -u username" to monitor your jobs only. For example:
ted ~/TED/TEST_MPI_SPLIT -> qstat -u lgrinb

ted.ccv.brown.edu:
                                                            Req'd  Req'd   Elap
Job ID          Username Queue    Jobname    SessID NDS TSK Memory Time  S Time
--------------- -------- -------- ---------- ------ --- --- ------ ----- - -----
12249.ted.ccv.b lgrinb   default  test_run      --    4  --    --  00:01 R   --
To learn more about the "qstat" command type "qstat -h".
To cancel running job use "qdel" command. For example to cancel job 12246 from the example above type
"qdel 12246".