dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20800
Fwd: [Branch ~dolfin-core/dolfin/main] Rev 5540: Minor fix for OpenMP on Windows.
-
To:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
From:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
Date:
Wed, 19 Jan 2011 12:52:40 +0000
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
Related to this, can we extract the version of OpenMP that a compiler
supports? We use loops over unsigned int, but I think that older OpenMP
version only support loops over int. I think that Marie hit this problem.
Garth
-------- Original Message --------
Subject: [Branch ~dolfin-core/dolfin/main] Rev 5540: Minor fix for
OpenMP on Windows.
Date: Wed, 19 Jan 2011 11:46:32 -0000
From: noreply@xxxxxxxxxxxxx
Reply-To: noreply@xxxxxxxxxxxxx
To: Garth Wells <gnw20@xxxxxxxxx>
------------------------------------------------------------
revno: 5540
committer: Johannes Ring <johannr@xxxxxxxxx>
branch nick: dolfin
timestamp: Wed 2011-01-19 12:44:10 +0100
message:
Minor fix for OpenMP on Windows.
modified:
dolfin/CMakeLists.txt
--
lp:dolfin
https://code.launchpad.net/~dolfin-core/dolfin/main
Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
To unsubscribe from this branch go to
https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription
=== modified file 'dolfin/CMakeLists.txt'
--- dolfin/CMakeLists.txt 2011-01-18 13:40:47 +0000
+++ dolfin/CMakeLists.txt 2011-01-19 11:44:10 +0000
@@ -184,6 +184,9 @@
# FIXME: Is this linker flag required?
#list(APPEND DOLFIN_LINK_FLAGS ${MPI_LINK_FLAGS})
+ if (MINGW)
+ list(APPEND DOLFIN_LINK_FLAGS "${OpenMP_CXX_FLAGS}")
+ endif()
# Necessary flag for MPICH2
list(APPEND DOLFIN_CXX_DEFINITIONS "-DMPICH_IGNORE_CXX_SEEK")
Follow ups