[libint] - workaround memory exhaustion on s390
Dan Horák
sharkcz at fedoraproject.org
Mon Dec 13 22:13:12 UTC 2010
commit a7a3474f7497e2e171a55cd9e4484a99a35195ad
Author: Dan Horák <dan at danny.cz>
Date: Mon Dec 13 23:13:03 2010 +0100
- workaround memory exhaustion on s390
libint.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/libint.spec b/libint.spec
index 666b451..561086f 100644
--- a/libint.spec
+++ b/libint.spec
@@ -1,6 +1,6 @@
Name: libint
Version: 1.1.4
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A library for computing electron repulsion integrals efficiently
Group: System Environment/Libraries
License: GPLv2+
@@ -63,6 +63,12 @@ expressions. The derivatives are typically used in the calculation of forces.
%configure --enable-shared --disable-static \
--with-libint-max-am=6 --with-libderiv-max-am1=5 --with-libderiv-max-am2=4 \
--with-libr12-max-am=5
+
+%ifarch s390
+# change to -O1 to prevent memory exhaustion by g++
+%global optflags %(echo %{optflags} | sed 's/-O2/-O1/')
+%endif
+
make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" %{?_smp_mflags}
# Build documentation
@@ -114,6 +120,9 @@ rm -rf %{buildroot}
%changelog
+* Mon Dec 13 2010 Dan Horák <dan[at]danny.cz> - 1.1.4-4
+- workaround memory exhaustion on s390
+
* Tue Nov 30 2010 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.1.4-3
- Increase maximum angular momentum values by 2, making it possible to
use basis sets that use up to I-type functions, such as Dunning's cc-pVXZ
More information about the scm-commits
mailing list