...
Then build the code (attached to this wiki page as stream.c ). Set it up as a new c project and add "-fopenmp" to the compile and link settings under the project properties if you want pthread/OpenMP support compiled in (we'll run it that way for the demo).
After building the project, try profiling it with valgrind. There are a couple options to explore. The default is to check for memory leaks.
...