blob: 79848034fd50f4780be992b2520fcb0accd332dc (
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) clang requires a libstdc++ option to make this work
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).
|