aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2017-10-03 15:57:03 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2017-10-03 15:57:03 +0300
commit259e26e9a8fcb27f9ecd4a026b1edbdb00cd29c1 (patch)
tree64484202e62089b98b9dab681e690ad3a7968f62
parentsci-mathematics/petsc: fix superlu version requirement (diff)
downloadsci-259e26e9a8fcb27f9ecd4a026b1edbdb00cd29c1.tar.gz
sci-259e26e9a8fcb27f9ecd4a026b1edbdb00cd29c1.tar.bz2
sci-259e26e9a8fcb27f9ecd4a026b1edbdb00cd29c1.zip
sci-mathematics/petsc: fix build on knem setups
If host MPI is configured to use knem, petsc needs to access /dev/knem as well. Package-Manager: Portage-2.3.8, Repoman-2.3.3 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
-rw-r--r--sci-mathematics/petsc/petsc-3.7.6.ebuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/sci-mathematics/petsc/petsc-3.7.6.ebuild b/sci-mathematics/petsc/petsc-3.7.6.ebuild
index c9c04f3e1..37c89710d 100644
--- a/sci-mathematics/petsc/petsc-3.7.6.ebuild
+++ b/sci-mathematics/petsc/petsc-3.7.6.ebuild
@@ -111,6 +111,8 @@ src_configure() {
# mitigate because it happens in libpciaccess.so called by libhwloc.so,
# which is used by libmpi.so.
addpredict /proc/mtrr
+ # if mpi is built with knem support it needs /dev/knem too
+ addpredict /dev/knem
# configureMPITypes with openmpi-2* insists on accessing the scaling
# governor rw.