<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/672dd16eceef792574b387061f4064f1832f65de">https://github.com/macports/macports-ports/commit/672dd16eceef792574b387061f4064f1832f65de</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 672dd16ecee berkeleygw, hpl, quantum-espresso, wannier90: Use build.jobs rather than hw.ncpu when running tests (#7608)
</span>672dd16ecee is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 672dd16eceef792574b387061f4064f1832f65de
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Mon Jul 6 12:18:17 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> berkeleygw, hpl, quantum-espresso, wannier90: Use build.jobs rather than hw.ncpu when running tests (#7608)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * berkeleygw: Remove ui_msg about running testsuite
</span><span style='display:block; white-space:pre;color:#404040;'> I don't know why the user would want to see that.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * berkeleygw: Use build.jobs instead of sysctl hw.activecpu
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * hpl: Use build.jobs instead of sysctl hw.ncpu
</span><span style='display:block; white-space:pre;color:#404040;'> And use test.dir instead of changing the dir within test.cmd
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * quantum-espresso: Use build.jobs instead of sysctl hw.ncpu
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * wannier90: Use build.jobs instead of sysctl hw.ncpu
</span>---
science/berkeleygw/Portfile | 7 ++-----
science/hpl/Portfile | 11 +++--------
science/quantum-espresso/Portfile | 11 ++---------
science/wannier90/Portfile | 4 +---
4 files changed, 8 insertions(+), 25 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/berkeleygw/Portfile b/science/berkeleygw/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 10aa2381782..580c46aa4e9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/berkeleygw/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/berkeleygw/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -85,11 +85,8 @@ pre-test {
</span> test.args-append TESTSCRIPT="MPIEXEC=${prefix}/bin/${mpi.exec} make check-parallel"
test.target check-jobscript
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # FIXME: what about with threads? set OMP_NUM_THREADS=2 and divide ncpus by 2.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {sysctl hw.activecpu} ncpus]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.env-append BGW_TEST_MPI_NPROCS=$ncpus
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "Running testsuite in parallel with $ncpus MPI tasks"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # FIXME: what about with threads? set OMP_NUM_THREADS=2 and divide build.jobs by 2.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.env-append BGW_TEST_MPI_NPROCS=${build.jobs}
</span> } else {
test.target check
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/hpl/Portfile b/science/hpl/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a61731a4a8a..b444c78129f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/hpl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/hpl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,17 +59,12 @@ pre-build {
</span> }
pre-test {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {sysctl hw.ncpu} result]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set njobs $result
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set njobs 4
</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;'>- test.cmd cd bin/${archname} && ${mpi.exec} -n ${njobs} ./xhpl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.dir ${worksrcpath}/bin/${archname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.cmd ${mpi.exec} -n ${build.jobs} ./xhpl
</span> }
pre-fetch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- notes "Execute as: cd ${prefix}/share/hpl && ${mpi.exec} -n 4 xhpl"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "Execute as: cd ${prefix}/share/hpl && ${mpi.exec} -n ${build.jobs} xhpl"
</span> }
livecheck.type regex
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/quantum-espresso/Portfile b/science/quantum-espresso/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0350edbc867..00a20455f96 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/quantum-espresso/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/quantum-espresso/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,16 +45,9 @@ configure.optflags -O3
</span>
pre-test {
if {[mpi_variant_isset]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {sysctl hw.ncpu} result]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set njobs $result
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set n2jobs [expr {$result*2}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set njobs 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set n2jobs 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> reinplace -W ${worksrcpath} "s|PARA_PREFIX=\" \"||" environment_variables
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s|PARA_PREFIX=\"mpirun -np 4\"|PARA_PREFIX=\"${mpi.exec} -n ${njobs}\"|" environment_variables
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -W ${worksrcpath} "s|PARA_IMAGE_PREFIX=\"mpirun -np 4\"|PARA_IMAGE_PREFIX=\"${mpi.exec} -n ${n2jobs}\"|" environment_variables
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -W ${worksrcpath} "s|PARA_PREFIX=\"mpirun -np 4\"|PARA_PREFIX=\"${mpi.exec} -n ${build.jobs}\"|" environment_variables
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -W ${worksrcpath} "s|PARA_IMAGE_PREFIX=\"mpirun -np 4\"|PARA_IMAGE_PREFIX=\"${mpi.exec} -n [expr ${build.jobs} * 2]\"|" environment_variables
</span> }
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/wannier90/Portfile b/science/wannier90/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3436f1a0d45..1dfe9427035 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/wannier90/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/wannier90/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -89,9 +89,7 @@ pre-test {
</span> if {[mpi_variant_isset]} {
test.target test-parallel
# TODO: patch numprocs to appropriate number, not just 4
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {sysctl hw.ncpu} ncpus]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|mpirun -np tc\.nprocs|${mpi.exec} -np ${ncpus}|" ${worksrcpath}/test-suite/testcode/lib/testcode2/__init__.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|mpirun -np tc\.nprocs|${mpi.exec} -np ${build.jobs}|" ${worksrcpath}/test-suite/testcode/lib/testcode2/__init__.py
</span> } else {
test.target test-serial
}
</pre><pre style='margin:0'>
</pre>