Information on Running Pthread jobs on TSCC

Information on Running Pthread jobs on TSCC

  • Compile Pthread programs
    By default, you will be using the Portland Group compiler icc
    icc -o test1 test1.c -lpthread -O1
    
    O1 is an optimization flag and you may use other flags.

    More details from TSCC on compiling MPI

  • Running a Pthread 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 a Pthread 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
    The following path contains sample Pthread code and makefiles at the TSCC login node.
    	~tyang/pthreads/pthreads