I just did an example project "Hello world" with openMP just to see how it works.
Here is the code:
#include <omp.h>
#include <iostream>
using namespace std;
int main()
{
#pragma omp parallel
{
cout <<"Hello World\n";
}
return 0;
}
from what I understood it suppose to print "Hello world" multi-times (as the number of the processors, no?) I mean that if I have a dual core it suppose to print this line 2 times, am I right? anyway it prints just one time, and I wonder why? I'm using Visual Studio 10 and running the code from there..