1

I want to write a block of C code and send it to every processor to execute it

Is that possible using mathematica?

using gateway to link C with mathematica or what ever

thank you all .. :)

Omar Osama
  • 1,401
  • 3
  • 19
  • 29

1 Answers1

1

I think it is, but you will need to distribute your function over the CPUs in the c code. By default, Mathematica isn't able to detect that your functions are atomic.

Have you checked out http://reference.wolfram.com/mathematica/tutorial/MathLinkDeveloperGuide-Unix.html ?

EDIT: If you are very certain you want to do this check out http://reference.wolfram.com/mathematica/ref/ParallelTable.html . It doesn't work particularly well with my c++, thats why I didn't recommend it :-).

Mikhail
  • 7,749
  • 11
  • 62
  • 136
  • thank you, that really helps me out .. :) but I want the mathematica part that allows me to execute my code distributed on the cores thank again .. :) – Omar Osama Jul 11 '11 at 21:53