C/C++ High Performance Computing Seminar

We will meet every Friday at 1pm in PKH 487. The tentative schedule for the subjects to be covered is:

Feb 10 - C Tutorial (data types, operators, loops, if/else, functions)
Feb 17 - Out of town
Feb 24 - C Tutorial (pointers, how c compiler works, multiple files)
Mar 02 - C Tutorial (release/debug, using debugger, profile application)
Mar 09 - C Tutorial (standard library, other libraries)
Mar 16 - Spring Break
Mar 23 - pThreads
Mar 30 - OpenMP
Apr 06 - C++ classes
Apr 13 - GPU
Apr 20 - GPU
Apr 27 - GPU

Code

General C/C++ Code

hello.cpp - Use this simple program to make sure you can compile code.
matmul.cpp - Test matrix multiplication with different ordering of for loops.
compile - A compile script to use in UNIX (Linux, or Mac).
primes.cpp - Program that lists prime numbers.
sumpi.cpp - A program that calculates pi^2 / 6 using floats and doubles.
matmul2.zip - More general matmul program using multiple files, pointers, and memory allocation.

Pthreads Code

sum.cpp - Calculates a really big sum with single threading.
sumthreads.cpp - Calculates a really big sum with multithreading.
sumthreads2.cpp - Tries to calculate a big sum but fails because no mutexes are used. Always gives different results.
sumthreads3.cpp - A program that uses mutexes.