Web lists-archives.org

Re: [Mingw-users] OpenMP Not Using Both Cores? What am I missing?




-----Original Message-----
From: mingw-users-bounces@xxxxxxxxxxxxxxxxxxxxx
[mailto:mingw-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Lawrence
Spector
Sent: Thursday, 27 December 2007 5:57 a.m.
To: 'mingw-users@xxxxxxxxxxxxxxxxxxxxx'
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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users