I am writing some tests for an appliation I am developing. This application uses TBB and OpenMP for some loops which do some floating point operations.
However, for the tests I want this loops to run sequentially, to be able to compare if two executions give the same result.
I know with OpenMP you can do set_omp_num_threads(1), but I have no idea how to disable parallelism in TBB. How is this done?