From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3F3A31389E2 for ; Tue, 9 Dec 2014 17:45:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8775AE0AED; Tue, 9 Dec 2014 17:45:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 26BF3E0AED for ; Tue, 9 Dec 2014 17:45:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBE2333F7F8 for ; Tue, 9 Dec 2014 17:45:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 58BB5BFC3 for ; Tue, 9 Dec 2014 17:45:42 +0000 (UTC) From: "Honza Macháček" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Honza Macháček" Message-ID: <1418147104.908ef58f93341fc45cad7051af05b5ce23d61838.honza_machacek@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/nwchem/ X-VCS-Repository: proj/sci X-VCS-Files: sci-chemistry/nwchem/ChangeLog sci-chemistry/nwchem/nwchem-6.5_p26243-r1.ebuild sci-chemistry/nwchem/nwchem-6.5_p26243-r2.ebuild X-VCS-Directories: sci-chemistry/nwchem/ X-VCS-Committer: honza_machacek X-VCS-Committer-Name: Honza Macháček X-VCS-Revision: 908ef58f93341fc45cad7051af05b5ce23d61838 X-VCS-Branch: master Date: Tue, 9 Dec 2014 17:45:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 60739a97-8d3f-4518-97c9-6b1b86dfe9ae X-Archives-Hash: 307494b7dd5530482b9c11a3ba2ff18f commit: 908ef58f93341fc45cad7051af05b5ce23d61838 Author: Honza Macháček centrum cz> AuthorDate: Tue Dec 9 17:45:04 2014 +0000 Commit: Honza Macháček centrum cz> CommitDate: Tue Dec 9 17:45:04 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=908ef58f One more correction of 64 vs 32 bit integers handling in sci-chemistry/nwchem-6.5_p26243. OpenMP support enabled, as well as some advanced methods not compiled by default. Package-Manager: portage-2.2.14 --- sci-chemistry/nwchem/ChangeLog | 8 ++ ...26243-r1.ebuild => nwchem-6.5_p26243-r2.ebuild} | 85 +++++++++++++--------- 2 files changed, 60 insertions(+), 33 deletions(-) diff --git a/sci-chemistry/nwchem/ChangeLog b/sci-chemistry/nwchem/ChangeLog index df19a21..36188d4 100644 --- a/sci-chemistry/nwchem/ChangeLog +++ b/sci-chemistry/nwchem/ChangeLog @@ -2,6 +2,14 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*nwchem-6.5_p26243-r2 (09 Dec 2014) + + 09 Dec 2014; Honza Macháček + -nwchem-6.5_p26243-r1.ebuild, +nwchem-6.5_p26243-r2.ebuild, metadata.xml: + One more correction of 64 vs 32 bit integers handling in + sci-chemistry/nwchem-6.5_p26243. OpenMP support enabled, as well as some + advanced methods not compiled by default. + *nwchem-6.5_p26243-r1 (12 Nov 2014) 12 Nov 2014; Honza Macháček diff --git a/sci-chemistry/nwchem/nwchem-6.5_p26243-r1.ebuild b/sci-chemistry/nwchem/nwchem-6.5_p26243-r2.ebuild similarity index 79% rename from sci-chemistry/nwchem/nwchem-6.5_p26243-r1.ebuild rename to sci-chemistry/nwchem/nwchem-6.5_p26243-r2.ebuild index 3926d49..4fc36c5 100644 --- a/sci-chemistry/nwchem/nwchem-6.5_p26243-r1.ebuild +++ b/sci-chemistry/nwchem/nwchem-6.5_p26243-r2.ebuild @@ -26,7 +26,7 @@ SRC_URI="http://www.nwchem-sw.org/images/Nwchem-${PV%_p*}.revision${PV#*_p}-src. LICENSE="ECL-2.0" SLOT="0" KEYWORDS="~x86 ~amd64" -IUSE="blas cuda infiniband lapack mpi doc examples int64 nwchem-tests openmp mrcc python scalapack" +IUSE="blas cuda doc examples infiniband int64 lapack mpi mrcc nwchem-tests openmp python scalapack" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) infiniband? ( mpi ) @@ -93,7 +93,12 @@ pkg_setup() { rm -f "${fcode}.*" popd - append-flags "${openmp}" +# append-flags "${openmp}" +# append-ldflags "${openmp} + export FC="${FC} ${openmp}" + export F77="${F77} ${openmp}" + export CC="${CC} ${openmp}" + export CXX="${CXX} ${openmp}" fi use python && python-single-r1_pkg_setup @@ -136,9 +141,9 @@ src_prepare() { src_compile() { export NWCHEM_LONG_PATHS=Y - export USE_SUBGROUPS=yes + export USE_NOIO=TRUE + use openmp && export USE_OPENMP=1 if use mpi ; then - export MSG_COMMS=MPI export USE_MPI=y export USE_MPIF=y export USE_MPIF4=y @@ -148,15 +153,10 @@ src_compile() { export LIBMPI="$(mpif90 -showme:link)" if use infiniband; then export ARMCI_NETWORK=OPENIB + export MSG_COMMS=MPI else - export ARMCI_NETWORK=MPI-TS + unset ARMCI_NETWORK fi - else - unset USE_MPI - unset USE_MPIF - unset USE_MPIF4 - export MSG_COMMS=TCGMSG - export ARMCI_NETWORK=SOCKETS fi if [ "$ARCH" = "amd64" ]; then export NWCHEM_TARGET=LINUX64 @@ -180,9 +180,11 @@ src_compile() { else export NWCHEM_MODULES="all" fi - use mrcc && export MRCC_THEORY="TRUE" - export CCSDTQ="TRUE" - export CCSDTLR="TRUE" + use mrcc && export MRCC_METHODS="TRUE" # Multi Reference Coupled Clusters + export CCSDTQ="TRUE" # Coupled Clusters Singlets + Dublets + Triplets + Quadruplets + export CCSDTLR="TRUE" # CCSDT (and CCSDTQ?) Linear Response + export EACCSD="TRUE" # Electron Affinities at the CCSD level + export IPCCSD="TRUE" # Ionisation Potentials at the CCSD level unset BLASOPT use blas && export BLASOPT="$(pkg-config --libs blas)" use lapack && export BLASOPT+="$(pkg-config --libs lapack)" @@ -198,28 +200,45 @@ src_compile() { export LARGE_FILES="TRUE" cd src - if use int64; then - export BLAS_SIZE=8 - export LAPACK_SIZE=8 - export SCALAPACK_SIZE=8 - else - export BLAS_SIZE=4 - export LAPACK_SIZE=4 - export SCALAPACK_SIZE=4 - export USE_64TO32=y - emake \ - DIAG=PAR \ - FC=$(tc-getFC) \ - CC=$(tc-getCC) \ - CXX=$(tc-getCXX) \ - NWCHEM_TOP="${S}" \ - 64_to_32 + if use blas && [ "$NWCHEM_TARGET" = "LINUX64" ]; then + if use int64; then + export BLAS_SIZE=8 + export LAPACK_SIZE=8 + export SCALAPACK_SIZE=8 + else + emake \ + DIAG=PAR \ + FC="$(tc-getFC)" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + NWCHEM_TOP="${S}" \ + clean + emake \ + DIAG=PAR \ + FC="$(tc-getFC)" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + NWCHEM_TOP="${S}" \ + 64_to_32 + export BLAS_SIZE=4 + export LAPACK_SIZE=4 + export SCALAPACK_SIZE=4 + export USE_64TO32=y + fi fi emake \ DIAG=PAR \ - FC=$(tc-getFC) \ - CC=$(tc-getCC) \ - CXX=$(tc-getCXX) \ + FC="$(tc-getFC)" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + NWCHEM_TOP="${S}" \ + NWCHEM_EXECUTABLE="${S}/bin/${NWCHEM_TARGET}/nwchem" \ + nwchem_config + emake \ + DIAG=PAR \ + FC="$(tc-getFC)" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ NWCHEM_TOP="${S}" \ NWCHEM_EXECUTABLE="${S}/bin/${NWCHEM_TARGET}/nwchem"