diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-12-08 12:29:40 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-12-08 12:29:40 +0000 |
commit | 7f9059691119315cf7354bafddcc647a8075c0f2 (patch) | |
tree | 95384d676f7b95c704c8361e5084d6d2e9967236 /lib/make/make.config.defn.in | |
parent | dd3d0935adcc837ee1145a86d16252ef1671d3f4 (diff) |
Add new configuration option OPENMP to enable/disable OpenMP support.
This option is accompanied by the option set {C,CXX,F77,F90}_OPENMP_FLAGS
through which users can overwrite the default OpenMP options set in the
known-architectures file.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4513 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.config.defn.in')
-rw-r--r-- | lib/make/make.config.defn.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/make/make.config.defn.in b/lib/make/make.config.defn.in index 96839461..ad7571a8 100644 --- a/lib/make/make.config.defn.in +++ b/lib/make/make.config.defn.in @@ -75,6 +75,12 @@ CXX_PROFILE_FLAGS = @CXX_PROFILE_FLAGS@ F90_PROFILE_FLAGS = @F90_PROFILE_FLAGS@ F77_PROFILE_FLAGS = @F77_PROFILE_FLAGS@ +# OpenMP flags +C_OPENMP_FLAGS = @C_OPENMP_FLAGS@ +CXX_OPENMP_FLAGS = @CXX_OPENMP_FLAGS@ +F90_OPENMP_FLAGS = @F90_OPENMP_FLAGS@ +F77_OPENMP_FLAGS = @F77_OPENMP_FLAGS@ + # Warning flags C_WARN_FLAGS = @C_WARN_FLAGS@ CXX_WARN_FLAGS = @CXX_WARN_FLAGS@ @@ -217,6 +223,17 @@ ifeq ($(strip $(CCTK_PROFILE_MODE)),yes) F90FLAGS += $(F90_PROFILE_FLAGS) endif +# Are we building with OpenMP support ? +CCTK_OPENMP_MODE = @OPENMP_MODE@ + +ifeq ($(strip $(CCTK_OPENMP_MODE)),yes) + CFLAGS += $(C_OPENMP_FLAGS) + CXXFLAGS += $(CXX_OPENMP_FLAGS) + F77FLAGS += $(F77_OPENMP_FLAGS) + F90FLAGS += $(F90_OPENMP_FLAGS) + FPPFLAGS += -D_OPENMP +endif + # Are we building with all warnings switched on ? # This option may be overwritten at compile time. ifeq ($(WARN),) |