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, no registration required.

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?

share|improve this question
    
This appears to be simply a duplicate of stackoverflow.com/questions/9388621/… which you linked to. Saying "I tried this and it doesn't work" is not a good question, because it gives potential answerers no idea about what might have gone wrong. –  Greg Hewgill Jan 16 '13 at 0:41
    
Those are complicated instructions and I was hoping to get more simple step by step instructions. I'm only 16 so I'm still new to c programming and really want to optimise my Mandelbrot generator but I can't follow any of the tutorials. –  Jordan Brown Jan 16 '13 at 1:55
2  
Apple includes a sample fractal generator using OpenCL. –  user4051 Jan 16 '13 at 9:44
add comment

1 Answer

up vote 2 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.