I’m on a dual core machine.  To demonstrate the issue I’m having, here’s a simple snippet of code I got from http://kallipolis.com/openmp/taylor_mp.c (except in this example, I put it in a source file called OpenMPMain.cpp).  When I run the code in Visual C++ 2005 with the OpenMP flag, it slams both cores at 100%.  With the same code in MinGW 4.2.1-dw2, it only slams one core at 100%, instead of both.  I’m assuming perhaps I’ve missed a flag or something.


I caught this post online (http://article.gmane.org/gmane.comp.gnu.mingw.user/23409) and made the appropriate change to libgomp.spec. 


Here’s my build line:


g++ -fopenmp -I/3rdparty/boost_1_34_0 -I/3rdparty/pthreads-w32-2-8-0 -o OpenMP ../SRC/OpenMPMain.cpp /3rdparty/pthreads-w32-2-8-0/lib/GC/libpthreadGC2.a –lgomp


Any ideas?


Thanks in advance,