Skip to content

Commit

Permalink
Merge pull request easybuilders#3412 from Crivella/fix-QE-disablempit…
Browse files Browse the repository at this point in the history
…ests

QuantumESPRESSO: Added usage of `--disable-mpi-tests` flag
  • Loading branch information
branfosj authored Aug 20, 2024
2 parents 99f7254 + e149f8b commit 078a512
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions easybuild/easyblocks/q/quantumespresso.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from easybuild.framework.easyconfig import CUSTOM, EasyConfig
from easybuild.tools import LooseVersion
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
from easybuild.tools.filetools import copy_dir, copy_file
from easybuild.tools.modules import get_software_root, get_software_version
from easybuild.tools.run import run_cmd
Expand Down Expand Up @@ -347,6 +348,9 @@ def test_step(self):
Test the compilation using Quantum ESPRESSO's test suite.
ctest -j NCONCURRENT (NCONCURRENT = max (1, PARALLEL / NPROCS))
"""
if not build_option('mpi_tests'):
self.log.info("Skipping testing of QuantumESPRESSO since MPI testing is disabled")
return

thr = self.cfg.get('test_suite_threshold', 0.97)
concurrent = max(1, self.cfg.get('parallel', 1) // self._test_nprocs)
Expand Down Expand Up @@ -1027,6 +1031,9 @@ def test_step(self):
Test the compilation using Quantum ESPRESSO's test suite.
cd test-suite && make run-tests NPROCS=XXX (XXX <= 4)
"""
if not build_option('mpi_tests'):
self.log.info("Skipping testing of QuantumESPRESSO since MPI testing is disabled")
return

thr = self.cfg.get('test_suite_threshold', 0.9)
stot = 0
Expand Down

0 comments on commit 078a512

Please sign in to comment.