Commit 664b7298 authored by Nicholas Breen's avatar Nicholas Breen

Build without SIMD on ppc64.

parent 446928d6
gromacs (2016-4) UNRELEASED; urgency=medium
* rules: Build without SIMD on ppc64.
-- Nicholas Breen <nbreen@debian.org> Sun, 25 Sep 2016 14:13:18 -0700
gromacs (2016-3) unstable; urgency=medium
* rules: Adjust SIMD detection logic to set GMX_SIMD=None by default, and
......
......@@ -38,13 +38,15 @@ COMMON_CONFIG_PARAMS = \
# 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 # i386, amd64
else ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),ppc64el))
COMMON_CONFIG_PARAMS += -DGMX_SIMD=IBM_VSX # ppc64el
ifeq (,$(findstring cpuopt,$(DEB_BUILD_OPTIONS)))
ifeq ($(DEB_HOST_ARCH_CPU), i386)
COMMON_CONFIG_PARAMS += -DGMX_SIMD=SSE2
else ifeq ($(DEB_HOST_ARCH_CPU), amd64)
COMMON_CONFIG_PARAMS += -DGMX_SIMD=SSE2
else ifeq ($(DEB_HOST_ARCH_CPU), ppc64el)
COMMON_CONFIG_PARAMS += -DGMX_SIMD=IBM_VSX
else
COMMON_CONFIG_PARAMS += -DGMX_SIMD=None # everything else
COMMON_CONFIG_PARAMS += -DGMX_SIMD=None
endif
endif
......
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