Bugfix: Slepc stand alone test#28593
Conversation
bf5768f to
95ae6d0
Compare
|
@vsoch Can you try running the |
|
Yeah it will be a bit - need to install again. |
vsoch
left a comment
There was a problem hiding this comment.
Sorry for the delay! Here are the updated results:
$ bin/spack test results -l -- slepc
==> Results for test suite '4gcvbws2pgx7po4fyiifp4anj6x242do', spec matching 'slepc':
==> slepc-3.16.1-grefsgc PASSED
==> Testing package slepc-3.16.1-grefsgc
==> [2022-01-26-17:29:46.086647] test: compile hello example
==> [2022-01-26-17:29:46.086841] '/tmp/spack/lib/spack/env/gcc/gcc' '-I/tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/slepc-3.16.1-grefsgch7dxpgm6qpq67b57j7bstmu6e/include' '-L/tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/slepc-3.16.1-grefsgch7dxpgm6qpq67b57j7bstmu6e/lib' '-L/tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/petsc-3.16.3-nrvqhfypucpihegzafnzrry7yp2zrcs7/lib' '-L/tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/openmpi-4.1.2-pltxvyjtqoqayz22kln2ndul42hyi5c3/lib' '/home/vanessa/.spack/test/4gcvbws2pgx7po4fyiifp4anj6x242do/slepc-3.16.1-grefsgc/data/slepc/hello.c' '-o' 'hello' '-lslepc' '-lpetsc' '-lmpi'
PASSED
==> [2022-01-26-17:29:46.266905] test: run hello example
==> [2022-01-26-17:29:46.267276] './hello'
Hello world
PASSED|
@spackbot run pipeline |
|
I've started that pipeline for you! |
vsoch
left a comment
There was a problem hiding this comment.
I saw results before, and I'm not anymore I think.
==> slepc-3.16.1-grefsgc PASSED
==> Testing package slepc-3.16.1-grefsgc
==> [2022-02-07-10:20:57.860398] Warning: Skipping slepc test: failed to find test1.c|
@vsoch Did you re-install |
|
No - I didn't know I needed to do that. Will try again after that. |
vsoch
left a comment
There was a problem hiding this comment.
$ bin/spack test results -l -- slepc
==> Results for test suite '25bdyqjyjmxjfl6cex33eftlnnp5uba7', spec matching 'slepc':
==> slepc-3.16.2-d2cvd32 PASSED
==> Testing package slepc-3.16.2-d2cvd32
==> [2022-02-07-15:42:26.991939] Installing /tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/slepc-3.16.2-d2cvd32q46ai5azr3fp7m5avxl32srdx/.spack/test to /home/vanessa/.spack/test/25bdyqjyjmxjfl6cex33eftlnnp5uba7/slepc-3.16.2-d2cvd32/cache/slepc
==> [2022-02-07-15:42:27.015149] test: compile test1 example
==> [2022-02-07-15:42:27.015358] '/tmp/spack/lib/spack/env/gcc/gcc' '-I/tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/slepc-3.16.2-d2cvd32q46ai5azr3fp7m5avxl32srdx/include' '-L/tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/slepc-3.16.2-d2cvd32q46ai5azr3fp7m5avxl32srdx/lib' '-L/tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/petsc-3.16.4-tuhalwfgo4mi3d6acbukidnytrhbk3vk/lib' '-L/tmp/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/openmpi-4.1.2-pltxvyjtqoqayz22kln2ndul42hyi5c3/lib' '/home/vanessa/.spack/test/25bdyqjyjmxjfl6cex33eftlnnp5uba7/slepc-3.16.2-d2cvd32/cache/slepc/src/eps/tests/test1.c' '-o' 'test1' '-lslepc' '-lpetsc' '-lmpi' '-lm'
PASSED
==> [2022-02-07-15:42:27.237853] test: run test1 example
==> [2022-02-07-15:42:27.238229] './test1'
Generalized Symmetric Eigenproblem, N=2025 (45x45 grid)
All requested eigenvalues computed up to the required tolerance:
29.73524
PASSEDRemove unneeded file
| self.run_test(exe=cc_exe, | ||
| options=['-I{0}'.format(self.prefix.include), | ||
| '-L', self.prefix.lib, '-l', 'slepc', | ||
| '-L', self.spec['petsc'].prefix.lib, '-l', 'petsc', | ||
| '-L', self.spec['mpi'].prefix.lib, '-l', 'mpi', | ||
| '-o', exe, join_path(test_dir, 'hello.c')], | ||
| '-L{0}'.format(self.prefix.lib), | ||
| '-L{0}'.format(self.spec['petsc'].prefix.lib), | ||
| '-L{0}'.format(self.spec['mpi'].prefix.lib), | ||
| join_path(test_dir, 'test1.c'), '-o', exe, | ||
| '-lslepc', '-lpetsc', '-lmpi', '-lm'], | ||
| purpose='test: compile {0} example'.format(exe), | ||
| work_dir=test_dir) |
There was a problem hiding this comment.
Is this needed anymore? I would think the make you introduced at line 175 already takes care of this.
There was a problem hiding this comment.
Without it, I get this error: ./test1: error while loading shared libraries: libparpack.so.2: cannot open shared object file
There was a problem hiding this comment.
@balay I am unable to build the example using the makefile. I get the error that I posted above.
|
I have been having a look at this. I think the problem is due to how SLEPc's configure is invoked from spack. In particular, the line There are two issues:
SLEPc's This problem does not appear when using Any comments? @balay Should I change SLEPc's configure to accept a list separated with spaces instead of commas? |
|
What is the status of this PR? |
I changed upstream SLEPc. Since version 3.18 the configure script accepts a quoted string for |
|
Closing this PR since the stand-alone test API used here was deprecated and the package is now successfully using the new API (for this test). |
Fixes 27983
The test fails due to an undefined reference in the example file.