[cig-commits] r21126 - short/3D/PyLith/pylith_installer/trunk
brad at geodynamics.org
brad at geodynamics.org
Mon Dec 10 17:17:33 PST 2012
Author: brad
Date: 2012-12-10 17:17:33 -0800 (Mon, 10 Dec 2012)
New Revision: 21126
Modified:
short/3D/PyLith/pylith_installer/trunk/Makefile.am
Log:
Fix for parallel PETSc builds.
Modified: short/3D/PyLith/pylith_installer/trunk/Makefile.am
===================================================================
--- short/3D/PyLith/pylith_installer/trunk/Makefile.am 2012-12-11 01:16:25 UTC (rev 21125)
+++ short/3D/PyLith/pylith_installer/trunk/Makefile.am 2012-12-11 01:17:33 UTC (rev 21126)
@@ -697,6 +697,11 @@
if WITH_CUDA
petsc_options += --with-cuda=1 --with-cusp=1 --with-thrust=1 --with-nvcc=$(NVCC)
endif
+if INSTALL_CMAKE
+petsc_build_options = -j$(make_threads) -C $(PETSC_ARCH)
+else
+petsc_build_options =
+endif
if USE_PYLITH_SVN
hg clone https://bitbucket.org/petsc/petsc-dev
cd petsc-dev/config && \
@@ -716,7 +721,7 @@
--download-boost=1 \
$(petsc_options) $(env_flags) \
PETSC_DIR=$(abs_builddir) PETSC_ARCH=$(PETSC_ARCH) ; \
- make -j$(make_threads) -C $(PETSC_ARCH) PETSC_DIR=$(abs_builddir) PETSC_ARCH=$(PETSC_ARCH) && \
+ make $(petsc_build_options) PETSC_DIR=$(abs_builddir) PETSC_ARCH=$(PETSC_ARCH) && \
make PETSC_DIR=$(abs_builddir) install && \
make PETSC_DIR=$(abs_builddir) test && \
touch ../installed_petsc
More information about the CIG-COMMITS
mailing list