Information on Running MPI jobs on TSCC

Information on Running MPI jobs on TSCC

  • Compile MPI programs
    By default, you will be using the Portland Group compiler with mpicc.
    mpicc -o test1 test1.c
    
    You may attach an optimization flag.

    More details from TSCC on compiling MPI

  • Running an MPI program in an interactive mode
    Command qsub -I allows you to submit interactive jobs, where you are given direct access to a set of resources. More details for interactive jobs on TSCC
  • Running an MPI program in a batch mode
    Job submission is done with a job script file with a number of options. These include the queue, the number of nodes, the title of your job, the maximum time it can take, where to put console output, and email notifications at job start and end, and Linux commands that run your programs.

    Make sure your code does not wait for an input from a user keyboard!

  • Sample code and makefile at TSCC
    You will be able to access the following files at the TSCC login node.
    	~tyang/mpiex    ------------ MPI sample code directory (PI calculation, hello program)
    	~tyang/mpiex/Makefile    ------------ the makefile for compiling and running a job 
    	~tyang/mpiex/run-hello-mpi.job    ------------ an example shell script to be used for job submission