CSCI 3366 (Introduction to Parallel and Distributed Processing):
Sample Programs

OpenMP

  • Utility functions for use with remaining examples: timer.h, cmdline.h.
  • Simple example of synchronization among threads:
  • Programs to compute pi by numerical integration:
  • Programs for heat diffusion example:
  • Programs for Mandelbrot example:
  • Programs for matrix multiplication example:
  • Generic master/worker programs:

    MPI

    Java

  • Programs to test/time mergesort:
  • Generic master/worker programs:

    OpenCL

    POSIX Threads

    C++11 Threads

    Note About Makefiles

    To obtain a makefile, use your browser's download function; cutting and pasting will likely turn the tabs in the makefile into spaces and cause it to not work. Put the makefile in the directory in which you want to compile. All the makefiles linked from this page begin with brief documentation on their use (the "usage examples").