<pre style='margin:0'>
David Strubbe (dstrubbe) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9d444ef383121185f7d58039ec395985240cb5a6">https://github.com/macports/macports-ports/commit/9d444ef383121185f7d58039ec395985240cb5a6</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 9d444ef3831 feast: update to 4.0.
</span>9d444ef3831 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9d444ef383121185f7d58039ec395985240cb5a6
</span>Author: David Strubbe <dstrubbe@macports.org>
AuthorDate: Mon Sep 21 09:23:28 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> feast: update to 4.0.
</span>---
math/feast/Portfile | 106 ++++++++++++++++++++++------------------------------
1 file changed, 45 insertions(+), 61 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/feast/Portfile b/math/feast/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2a9c88a669a..7bf7979dd2b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/feast/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/feast/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,11 +4,11 @@ PortSystem 1.0
</span> PortGroup mpi 1.0
name feast
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 3.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 4.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories science
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {dstrubbe @dstrubbe}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {dstrubbe @dstrubbe} openmaintainer
</span> license BSD
description A free high-performance numerical library for solving Hermitian and non-Hermitian eigenvalue problems
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,16 +23,19 @@ long_description The FEAST eigensolver package is a free high-performance num
</span> computation consisting of solving independent linear systems along a complex contour, each with multiple right-hand \
sides. A Rayleigh-Ritz procedure is then used to generate a reduced dense eigenvalue problem orders of magnitude \
smaller than the original one. The FEAST eigensolver combines simplicity and efficiency and it offers many important \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- capabilities for achieving high performance, robustness, accuracy, and scalability on parallel architectures.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ capabilities for achieving high performance, robustness, accuracy, and scalability on parallel architectures. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NOTE: Without an MPI variant, builds libfeast.a. With MPI, builds libpfeast.a.
</span>
homepage http://www.feast-solver.org
# note: below will have to be updated for a new version
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites http://www.ecs.umass.edu/~polizzi/feast/m3-0/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites http://www.ecs.umass.edu/~polizzi/feast/m4-0/
</span> extract.suffix .tgz
distname ${name}_${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 f2b271569cb22fc8897485394339e545c0d9518a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha1 d7f6f350c275bb36bbea43882f0a7079083cc53d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 f06d7a9e7646451533dfc1398564c0c6eaef8cdf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha1 1da96e25f57cfffe9a2d510a971df194f9621ddb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 2b084e785df658d3146cee51f29dc325babf3da1ac7a0cc248c3dd64a666943d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 29601256
</span>
use_configure no
worksrcdir FEAST/${version}/src
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,46 +44,30 @@ compilers.choose cc fc
</span> # g95 does not support OpenMP
mpi.setup default require_fortran -g95
configure.optflags -O3
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# avoid gcc10 compilation type mismatch errors in /src/kernel/dzfeast.f90 and src/kernel/libnum.f90
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compilers.allow_arguments_mismatch yes
</span>
use_parallel_build yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# only for tests
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# also openblas or atlas. Use vecLibFort since it is quickest to install.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append port:vecLibFort
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# also could be openblas or atlas. Use vecLibFort since it is quickest to install.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_test-append port:vecLibFort
</span> # needed for clang or llvm, only for tests in fact, but very quick to install
if {![gcc_variant_isset]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_test-append port:libomp
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-extract {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # allow user or developer to inspect working directory!
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath}/../.. "chmod -R a+rX ."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # remove unwisely distributed binary libs, which get in the way
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete file ${worksrcpath}/../lib/x64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.target all
</span> pre-build {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[mpi_variant_isset]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build.args-append LIBNAME=pfeast MPI=${mpi.fc}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build.args-append LIBNAME=feast
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.fcflags-append -ffree-line-length-none -ffixed-line-length-none -fopenmp -cpp
# they say option 2 only works with ifort. compiles and links fine with gcc5, but segfaults in tests
build.args-append OPTION=1 CC=${configure.cc} CFLAGS="${configure.cflags}" F90=${configure.fc} \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- F90FLAGS="${configure.fcflags}" FFLAGS="${configure.fcflags}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # LIB is reused with different incompatible meaning in example directory???
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s/LIB/LIBNAME/g" Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ F90FLAGS="${configure.fcflags}" MKL=no
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- #banded/spike-smp/zspike_smp.f90:1078:16: Error: !$OMP PARALLEL DO iteration variable present on clause other than PRIVATE or LASTPRIVATE at (1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # patch to fix this error in OpenMP usage.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s/\!\$omp parallel do firstprivate(t1,t2,i/\!\$omp parallel do private(i) firstprivate(t1,t2/g" banded/spike-smp/dspike_smp.f90
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s/\!\$omp parallel do firstprivate(t1,t2,i/\!\$omp parallel do private(i) firstprivate(t1,t2/g" banded/spike-smp/zspike_smp.f90
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s/\!\$omp parallel do firstprivate(t1,t2,i/\!\$omp parallel do private(i) firstprivate(t1,t2/g" banded/spike-smp/cspike_smp.f90
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s/\!\$omp parallel do firstprivate(t1,t2,i/\!\$omp parallel do private(i) firstprivate(t1,t2/g" banded/spike-smp/sspike_smp.f90
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[mpi_variant_isset]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append PF90=${mpi.fc} PF90FLAGS="${configure.fcflags} -DMPI"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target-append pfeast
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target feast
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# OPTION 1, +mpich or +openmpi: all sbev(x) C/F, serial/MPI (8 total) hang, no segfaults
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,11 +77,7 @@ pre-build {
</span> # +gfortran +mpich +clang37 serial sbev's hang.
test.run yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# '-k' means keep going, so one failure does not stop the whole process
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target -k rall-nosparse
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# why is this needlessly different from src dir?
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# you don't use CFLAGS in linking in example??
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# 'rall' target uselessly repeats 'all' target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.dir ${worksrcpath}/../example
</span> pre-test {
set libblas "-lvecLibFort"
if {[gcc_variant_isset]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -109,37 +92,38 @@ pre-test {
</span> } else {
set mpiflib "-lmpi_mpifh ${compilers.libfortran}"
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- test.target-append rallMPI-nosparse
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.args-append PCC=${mpi.cc} PFORT=${mpi.f90}
</span> } else {
set mpiflib "${compilers.libfortran}"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set libs_general "${libblas} ${libomp}"
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- test.args-append CC=${configure.cc} CFLAGS="${configure.cflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.args-append C=${configure.cc} CFLAGS="${configure.cflags}" \
</span> F90=${configure.fc} F90FLAGS="${configure.fcflags}" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- FORT=${configure.fc} FFLAGS="${configure.fcflags}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- FLIBS="${libblas} ${libomp}" CLIBS="${libblas} ${libomp} ${mpiflib}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- worksrcdir ${worksrcdir}/../example
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # scripitize this
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # why no targets provided for MPI tests? shouldn't MPI by executed with ${mpi.exec} -n .. ?
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # call it 'make test' or 'make check'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # must exclude pardiso (required for sparse). This is not distributable software. http://www.pardiso-project.org/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "echo 'rallC-nosparse:\n\tcd ./Hermitian/C/1_dense && make myrall; cd ../2_banded && make myrall; cd ../../../Non-Hermitian/C/1_dense && make myrall; cd ../2_banded && make myrall\nrallF-nosparse:\n\tcd ./Hermitian/Fortran/1_dense && make myrall; cd ../2_banded && make myrall; cd ../../../Non-Hermitian/Fortran/1_dense && make myrall; cd ../2_banded && make myrall\nrall-nosparse: rallF-nosparse rallC-nosparse' >> Makefile"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "echo 'rallCMPI-nosparse:\n\tcd ./Hermitian/C-MPI/1_dense && make myrall; cd ../2_banded && make myrall; cd ../../../Non-Hermitian/C-MPI/1_dense && make myrall; cd ../2_banded && make myrall\nrallFMPI-nosparse:\n\tcd ./Hermitian/Fortran-MPI/1_dense && make myrall; cd ../2_banded && make myrall; cd ../../../Non-Hermitian/Fortran-MPI/1_dense && make myrall; cd ../2_banded && make myrall\nrallMPI-nosparse: rallFMPI-nosparse rallCMPI-nosparse' >> Makefile"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FORT=${configure.fc} FFLAGS="${configure.fcflags}"
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "echo 'allC-nosparse:\n\tcd ./Hermitian/C/1_dense && make all; cd ../2_banded && make all; cd ../../../Non-Hermitian/C/1_dense && make all; cd ../2_banded && make all\nallF-nosparse:\n\tcd ./Hermitian/Fortran/1_dense && make all; cd ../2_banded && make all; cd ../../../Non-Hermitian/Fortran/1_dense && make all; cd ../2_banded && make all\nall-nosparse: allF-nosparse allC-nosparse' >> Makefile"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "echo 'allCMPI-nosparse:\n\tcd ./Hermitian/C-MPI/1_dense && make all; cd ../2_banded && make all; cd ../../../Non-Hermitian/C-MPI/1_dense && make all; cd ../2_banded && make all\nallFMPI-nosparse:\n\tcd ./Hermitian/Fortran-MPI/1_dense && make all; cd ../2_banded && make all; cd ../../../Non-Hermitian/Fortran-MPI/1_dense && make all; cd ../2_banded && make all\nallMPI-nosparse: allFMPI-nosparse allCMPI-nosparse' >> Makefile"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[mpi_variant_isset]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.args-append FLIBS="${libs_general} ../../lib/x64/libpfeast.a" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CLIBS="${libs_general} ../../lib/x64/libpfeast.a ${mpiflib}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MPIRUN=${mpi.exec} PC=${mpi.cc} PF90=${mpi.f90}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${test.dir} "echo 'test:\n\tulimit -t 200 && cd PFEAST-L1L2L3 && make N=${build.jobs} rall\n\tulimit -t 200 && cd PFEAST-L2 && make N=${build.jobs} rall\n\tulimit -t 200 && cd PFEAST-L2L3 && make N=${build.jobs} rall\n' >> Makefile"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.args-append FLIBS="${libs_general} ../../lib/x64/libfeast.a" CLIBS="${libs_general} ../../lib/x64/libfeast.a ${mpiflib}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${test.dir} "echo 'test:\n\tulimit -t 200 && cd FEAST && make rall\n' >> Makefile"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # note: ulimit is to handle jobs that hang, and make them just fail.
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Fortran-MPI examples lack 'rall' target...
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # can add MPI this way too.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # kill a test if it hangs, so the testsuite can proceed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "echo 'myrall: examples\n\t ulimit -t 200 && for file in \$(EXAMPLES); do echo; echo; echo Running \$\$file; ./\$\$file; echo Ran \$\$file in \$\$PWD; done' >> make.inc"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # in serial: all pass except F90sparse_dfeast_scsrpev-- failed.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # results with default variants (mpich): 31 pass, 4 fail:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # PF90sparse_dfeast_scsrpev -- failed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # PCsparse_dfeast_scsrpev -- failed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # PF90sparse_pdfeast_scsrpev -- failed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # PCsparse_pdfeast_scsrpev -- failed
</span> }
post-test {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_notice "Examine log file for test results."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_notice "Examine log files (examples/*/*.log) for test results."
</span> }
destroot {
</pre><pre style='margin:0'>
</pre>