From: Danny S. <dan...@cl...> - 2007-12-27 05:16:41
|
-----Original Message----- From: min...@li... [mailto:min...@li...] On Behalf Of Lawrence Spector Sent: Thursday, 27 December 2007 5:57 a.m. To: 'min...@li...' Subject: [Mingw-users] OpenMP Not Using Both Cores? What am I missing? 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 You need to rebuild libgomp with this patch http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128321 Danny |