Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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). Image Added

After building the project, try profiling it with valgrind.  There are a couple options to explore.  The default is to check for memory leaks.

...