summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2023-09-12 11:09:25 -0700
committerGitHub <noreply@github.com>2023-09-12 11:09:25 -0700
commitc10ff27600f30c05b6d81fa0c0abdd851c027922 (patch)
tree853585eb8d3cc28d31f867acd9ef59d6dd9dbb54
parent9056f31f11450f004716dfa950231163cd20ab24 (diff)
downloadspack-c10ff27600f30c05b6d81fa0c0abdd851c027922.tar.gz
spack-c10ff27600f30c05b6d81fa0c0abdd851c027922.tar.bz2
spack-c10ff27600f30c05b6d81fa0c0abdd851c027922.tar.xz
spack-c10ff27600f30c05b6d81fa0c0abdd851c027922.zip
CI/Add superlu-dist to broken stand-alone tests due to hang (#38908)
* Add superlu-dist to broken stand-alone CI tests * Revert "disable superlu test (#38894)" This reverts commit e16397b5d865d402c749482d05bb2bdc09b96661.
-rw-r--r--share/spack/gitlab/cloud_pipelines/configs/ci.yaml1
-rw-r--r--var/spack/repos/builtin/packages/superlu-dist/package.py15
2 files changed, 16 insertions, 0 deletions
diff --git a/share/spack/gitlab/cloud_pipelines/configs/ci.yaml b/share/spack/gitlab/cloud_pipelines/configs/ci.yaml
index efa1d389c3..2973d1d799 100644
--- a/share/spack/gitlab/cloud_pipelines/configs/ci.yaml
+++ b/share/spack/gitlab/cloud_pipelines/configs/ci.yaml
@@ -3,6 +3,7 @@ ci:
broken-tests-packages:
- gptune
+ - superlu-dist # srun -n 4 hangs
broken-specs-url: "https://dummy.io" # s3://spack-binaries/broken-specs"
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py
index bca3664068..7af5736993 100644
--- a/var/spack/repos/builtin/packages/superlu-dist/package.py
+++ b/var/spack/repos/builtin/packages/superlu-dist/package.py
@@ -160,3 +160,18 @@ class SuperluDist(CMakePackage, CudaPackage, ROCmPackage):
"""Copy the example matrices after the package is installed to an
install test subdirectory for use during `spack test run`."""
self.cache_extra_test_sources([self.examples_src_dir])
+
+ def test_pddrive(self):
+ """run cached pddrive"""
+ if not self.spec.satisfies("@7.2.0:"):
+ raise SkipTest("Test is only available for v7.2.0 on")
+
+ test_dir = join_path(self.test_suite.current_test_cache_dir, self.examples_src_dir)
+ superludriver = join_path(self.prefix.lib, "EXAMPLE", "pddrive")
+
+ with working_dir(test_dir):
+ # Smoke test input parameters: -r 2 -c 2 g20.rua
+ test_args = ["-n", "4", superludriver, "-r", "2", "-c", "2", "g20.rua"]
+ # Find the correct mpirun command
+ mpiexe_f = which("srun", "mpirun", "mpiexec")
+ mpiexe_f(*test_args)