1. ssh username@ssh.ccv.brown.edu
enter your password2. ssh ted
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.
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.
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.
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".