I'm making mandelbrot fractals in C using Xcode and I want to use parallel computing but everything I've tried so far doesn't work. Such as This Question and other how to guides. Whats the easiest way to use frameworks such as mpi.h to run my program in parallel?
Take the 2-minute tour
×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.
|
According to the answers on this StackOverflow question, the compiler included with Xcode 4.5 does not (yet) understand the OpenMP pragmas for parallel execution. There are other ways to achieve what you want, though. Apple has sample code for a fractal generator written in OpenCL, or you could use Grand Central Dispatch. In any case your main problem is working out which parts of the application can run in parallel and how to synchronise with those that can't. |
|||
|