Should I use OpenMP or parallel_for_ for a simple for loop ?
OpenMP is simplier since I only need to add one line, what is the advantage of parallel_for ?
E.g. iOS doesn't support OpenMP. parallel_for_ supports different frameworks for parallelisation (TBB, GCD, Concurrency, ...) So you code for parallelisation can be more cross platform than OpenMP.
Asked: 2015-01-12 02:26:20 -0600
Seen: 18,345 times
Last updated: Jan 12 '15