Ask Your Question
1

Should I use OpenMP or parallel_for_ for a simple for loop ?

asked 2015-01-12 02:26:20 -0600

sup gravatar image

OpenMP is simplier since I only need to add one line, what is the advantage of parallel_for ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-01-12 06:38:46 -0600

AlexanderShishkov gravatar image

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.

edit flag offensive delete link more

Comments

thanks that makes sense

sup gravatar imagesup ( 2015-01-16 02:27:56 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-01-12 02:26:20 -0600

Seen: 18,316 times

Last updated: Jan 12 '15