A few days ago I visited a lecture of a teacher in an university that was about parallel processing.
He explained why it's good etc, and how you can make programs that use multiple cpus in C.
He used MPI and the code looked nice, wasn't too hard and got the job done. But in order to compile the program u needed to use mpicc (so not gcc, vcc or bcc)
and to run the program you had to write something like:
shell$ /opt/openmpi-1.3.1/bin/mpirun -np 4 a.out
in that line, you also specify how many cores you want to use.
So my question is: Is there any other multiprocessing api that uses local variables, and messages to coordinate the work of the cpus that can be compiled by visual c++ or devc++ and doesn't need that weird command line to execute. that you can choose the amount of cores inside the program?
I hope that makes sense, else, please reply for a detailed explanation.
Thanks in advance,