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