Commit 66642c5c authored by Nicholas Breen's avatar Nicholas Breen

rules: set -DGMX_SIMD=None as the default, then enable only one architecture...

rules: set -DGMX_SIMD=None as the default, then enable only one architecture at a time as available (#834991 + unreported ppc issues)
parent 4e19bea9
gromacs (2016-3) unstable; urgency=medium
* rules: Adjust SIMD detection logic to set GMX_SIMD=None by default, and
enable it case-by-case only on those architectures where it's safe to
do so. (Closes: #834991)
-- Nicholas Breen <nbreen@debian.org> Sun, 28 Aug 2016 13:19:18 -0700
gromacs (2016-2) unstable; urgency=medium
* Accept DEB_BUILD_OPTIONS=nocheck for the "build-openmpi" target, which
......
......@@ -33,24 +33,20 @@ COMMON_CONFIG_PARAMS = \
-DCMAKE_SKIP_RPATH=TRUE \
-DGMX_X11=ON
# Force compiler to use no more than SSE2 CPU optimizations on x86/amd64,
# and VSX on ppc64el, for broadest compatibility.
# For local compilations, pass DEB_BUILD_OPTIONS=cpuopt for automatic
# For compatibility reasons, disable SIMD CPU optimizations EXCEPT
# for SSE2 on x86/amd64, and VSX on ppc64el.
# For local compilations, set DEB_BUILD_OPTIONS=cpuopt for automatic
# detection of the best available option.
# See http://www.gromacs.org/Documentation/Acceleration_and_parallelization#Acceleration
ifeq (,$(findstring cpuopt,$(DEB_BUILD_OPTIONS)))
ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),i386 amd64))
COMMON_CONFIG_PARAMS += -DGMX_SIMD=SSE2
endif
# ppc64*
ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),ppc64))
ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),ppc64el))
COMMON_CONFIG_PARAMS += -DGMX_SIMD=None # ppc64
else
COMMON_CONFIG_PARAMS += -DGMX_SIMD=SSE2 # i386, amd64
else ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),ppc64el))
COMMON_CONFIG_PARAMS += -DGMX_SIMD=IBM_VSX # ppc64el
endif # ifneq .. ppc64el
endif # ifneq .. ppc64
endif # DEB_BUILD_OPTIONS
else
COMMON_CONFIG_PARAMS += -DGMX_SIMD=None # everything else
endif
endif
# Include "gpu" in DEB_BUILD_OPTIONS to build GPU-accelerated binaries as well.
# This build option is not always well tested, please send comments.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment