Commit a8d82d43 authored by Nicholas Breen's avatar Nicholas Breen

rules: Add build-arch and build-indep targets; add preliminary support for...

rules: Add build-arch and build-indep targets; add preliminary support for building GPU-accelerated binaries (DEB_BUILD_OPTIONS=gpu).
parent a8ab4bed
gromacs (4.5.4-3) UNRELEASED; urgency=low
* rules: Add build-arch/build-indep targets. Add preliminary support for
building GPU-accelerated binaries: set DEB_BUILD_OPTIONS=gpu to try it.
-- Nicholas Breen <nbreen@ofb.net> Mon, 19 Sep 2011 14:49:41 -0700
gromacs (4.5.4-2) unstable; urgency=low gromacs (4.5.4-2) unstable; urgency=low
* control: remove obsolete Build-Depends and Suggests on libice-dev, * control: remove obsolete Build-Depends and Suggests on libice-dev,
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
# export DH_VERBOSE=1 # export DH_VERBOSE=1
# debhelper compatibility version set to 5 in debian/compat
PACKAGE := gromacs PACKAGE := gromacs
include /usr/share/dpatch/dpatch.make include /usr/share/dpatch/dpatch.make
...@@ -37,6 +35,13 @@ ifneq ($(CFLAGS),) ...@@ -37,6 +35,13 @@ ifneq ($(CFLAGS),)
COMMON_CONFIG_PARAMS += -DCMAKE_C_FLAGS="$(CFLAGS)" COMMON_CONFIG_PARAMS += -DCMAKE_C_FLAGS="$(CFLAGS)"
endif endif
# Include "gpu" in DEB_BUILD_OPTIONS to build GPU-accelerated binaries as well.
# See INSTALL-GPU. This build option is not tested, please send comments.
# You must have OpenMM development headers (not packaged) and "nvidia-cuda-dev"
# installed!
ifneq (,$(findstring gpu,$(DEB_BUILD_OPTIONS)))
COMMON_CONFIG_PARAMS += -DGMX_OPENMM=ON -DGMX_THREADS=OFF
endif
MPICH_CONFIG_PARAMS = \ MPICH_CONFIG_PARAMS = \
-DGMX_MPI=ON \ -DGMX_MPI=ON \
...@@ -47,7 +52,7 @@ MPICH_CONFIG_PARAMS = \ ...@@ -47,7 +52,7 @@ MPICH_CONFIG_PARAMS = \
OPENMPI_CONFIG_PARAMS = \ OPENMPI_CONFIG_PARAMS = \
-DGMX_MPI=ON \ -DGMX_MPI=ON \
-DGMX_THREADS=OFF \ -DGMX_THREADS=OFF \
-DGMX_DEFAULT_SUFFIX=FALSE -DGMX_DEFAULT_SUFFIX=FALSE \
-DGMX_FORTRAN=OFF \ -DGMX_FORTRAN=OFF \
-DGMX_X11=OFF \ -DGMX_X11=OFF \
-DCMAKE_EXE_LINKER_FLAGS="-L/usr/lib/openmpi/lib $(LDFLAGS)" -DCMAKE_EXE_LINKER_FLAGS="-L/usr/lib/openmpi/lib $(LDFLAGS)"
...@@ -84,6 +89,9 @@ endif ...@@ -84,6 +89,9 @@ endif
build: patch-stamp configure-stamp build-basic build-mpich build-openmpi build: patch-stamp configure-stamp build-basic build-mpich build-openmpi
build-arch: build
build-indep: build
build-basic: configure-stamp build-basic: configure-stamp
dh_testdir dh_testdir
$(MAKE) -C build/basic $(MAKE) -C build/basic
......
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