Turn on OpenMP by default

This commit is contained in:
Paul Romano 2017-04-10 07:32:51 -05:00
parent c494ed69d7
commit 2660c5918f
3 changed files with 4 additions and 5 deletions

View file

@ -25,14 +25,13 @@ endif()
# Command line options
#===============================================================================
option(openmp "Enable shared-memory parallelism with OpenMP" OFF)
option(openmp "Enable shared-memory parallelism with OpenMP" ON)
option(profile "Compile with profiling flags" OFF)
option(debug "Compile with debug flags" OFF)
option(optimize "Turn on all compiler optimization flags" OFF)
option(coverage "Compile with coverage analysis flags" OFF)
option(mpif08 "Use Fortran 2008 MPI interface" OFF)
# Maximum number of nested coordinates levels
set(maxcoord 10 CACHE STRING "Maximum number of nested coordinate levels")
add_definitions(-DMAX_COORD=${maxcoord})

View file

@ -225,7 +225,7 @@ optimize
openmp
Enables shared-memory parallelism using the OpenMP API. The Fortran compiler
being used must support OpenMP.
being used must support OpenMP. (Default: on)
coverage
Compile and link code instrumented for coverage analysis. This is typically

View file

@ -184,8 +184,8 @@ class Test(object):
build_str += "-Ddebug=ON "
if self.optimize:
build_str += "-Doptimize=ON "
if self.openmp:
build_str += "-Dopenmp=ON "
if not self.openmp:
build_str += "-Dopenmp=OFF "
if self.coverage:
build_str += "-Dcoverage=ON "
self.build_opts = build_str