[Mingw-users] OpenMP Not Using Both Cores? What am I missing?
- Date: Wed, 26 Dec 2007 11:56:32 -0500
- From: Lawrence Spector <Lawrence.Spector@xxxxxxxxxxxxxxx>
- 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. 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, Lawrence |
------------------------------------------------------------------------- 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
- Follow-Ups:
- Re: [Mingw-users] OpenMP Not Using Both Cores? What am I missing?
- From: Danny Smith
- Re: [Mingw-users] OpenMP Not Using Both Cores? What am I missing?
- Prev by Date: [Mingw-users] Fwd: Re: [Mingw-w64-public] MinGW 64 on Windows Vista 64
- Next by Date: Re: [Mingw-users] OpenMP Not Using Both Cores? What am I missing?
- Previous by thread: [Mingw-users] Fwd: Re: [Mingw-w64-public] MinGW 64 on Windows Vista 64
- Next by thread: Re: [Mingw-users] OpenMP Not Using Both Cores? What am I missing?
- Index(es):