X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <275548810.20120112111713@mtu-net.ru> References: <275548810 DOT 20120112111713 AT mtu-net DOT ru> Date: Fri, 13 Jan 2012 09:33:00 +1100 Message-ID: Subject: Re: MinGW gfortran and OpenMP issues... From: Nick Chilton To: cygwin AT cygwin DOT com, anrdaemon AT freemail DOT ru Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Andrey, I have done this, but no difference. I copied the pthreadGC2.dll from the appropriate MinGW lib in cygwin to the folder and it runs fine! There is another problem however. While the program says it is running with 3 threads, it only runs using 25% cpu, spread over 3 cores (Core i5, quad core) (when I say spread, it's not constant, it seems to jump about over the cores 0, 1 and 2) . This occurs when I run from cmd or cygwin. Interstingly, the same behaviour is observed when I only run it with one thread. The same code compiled with ifort on linux runs great with the same input on 3 threads using 3 cores (i.e. 300% cpu) or 1 core if I choose. Is there a way to flex all cores on a windows box with OpenMP?? Nick -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple