commit:     259e26e9a8fcb27f9ecd4a026b1edbdb00cd29c1
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  3 12:57:03 2017 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Tue Oct  3 12:57:03 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=259e26e9

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 <AT> gentoo.org>

 sci-mathematics/petsc/petsc-3.7.6.ebuild | 2 ++
 1 file changed, 2 insertions(+)

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.

Reply via email to