taming-cpp

Experiments with C++ and comparisons with C
git clone https://git.tronto.net/taming-cpp
Download | Log | Files | Refs | README

notes.txt (503B)


      1 - Getting the parallel version to work was a pain. Two major gotchas:
      2 	(1) -ltbb had to be added *at the end* of the command line
      3 	(2) I was sometimes trying clang, but not clang++
      4   of course everything was terrible to decipher with C++ compile errors
      5   being the mess they are.
      6 - For measuring time I could also use
      7 	clock_t begin = clock();
      8 	...
      9 	clock_t end = clock();
     10 	double time = (dobule)(end - begin) / CLOCKS_PER_SEC;
     11   but it does not work with the parallel version (it meausres CPU clocks).