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?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
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.