Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 771711 - sci-mathematics/petsc-3.13.1[mpi] with openmpi[cuda]: sandbox violations for /dev/nvidiactl
Summary: sci-mathematics/petsc-3.13.1[mpi] with openmpi[cuda]: sandbox violations for ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-02-20 09:58 UTC by Bernd
Modified: 2021-04-09 18:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
petsc-3.13.1:20210220-094800.log (petsc-3.13.1:20210220-094800.log,79.04 KB, text/plain)
2021-02-20 09:58 UTC, Bernd
Details
emerge-info_petsc-3.13.1.txt (emerge-info_petsc-3.13.1.txt,14.19 KB, text/plain)
2021-02-20 09:59 UTC, Bernd
Details
petsc-3.13.1-mpi-hypre-mumps.patch (petsc-3.13.1-mpi-hypre-mumps.patch,992 bytes, text/plain)
2021-02-20 11:18 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2021-02-20 09:58:20 UTC
Emerging petsc with USE=mpi leads to several sandbox violations in configureMPIEXEC and configureMPITYPES:



TESTING: configureMPIEXEC from config.packages.MPI(/var/tmp/portage/sci-mathematics/petsc-3.13.1/work/petsc-3.13.1/config/BuildSystem/config/packages/MPI.py:175)
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
TESTING: configureMPITypes from config.packages.MPI(/var/tmp/portage/sci-mathematics/petsc-3.13.1/work/petsc-3.13.1/config/BuildSystem/config/packages/MPI.py:328)
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl
 * ACCESS DENIED:  open_wr:      /dev/nvidiactl

Adding an addpredict /dev/nvidiactl statement solves this.

Reproducible: Always

Steps to Reproduce:
1. USE="mpi" emerge sci-mathematics/petsc
2.
3.



build log and emerge info as attachments
Comment 1 Bernd 2021-02-20 09:58:54 UTC
Created attachment 687702 [details]
petsc-3.13.1:20210220-094800.log

build log
Comment 2 Bernd 2021-02-20 09:59:19 UTC
Created attachment 687705 [details]
emerge-info_petsc-3.13.1.txt

output of emerge --info petsc
Comment 3 Bernd 2021-02-20 10:03:03 UTC
Additionally, if petsc[hypre] is build, where USE=hypre requires USE=mpi, configuration fails with

Hypre specified is incompatible!
Hypre with --enable-bigint/--enable-mixedint appears to be specified for a default 32-bit-indices build of PETSc.

This happens, if sci-libs/hypre is built with USE=int64. Omitting the int64 USE flag, solves this.
Comment 4 Bernd 2021-02-20 11:18:31 UTC
Created attachment 687732 [details]
petsc-3.13.1-mpi-hypre-mumps.patch

The patch solve the mpi issue by adding an addpredict statement.

It also changes the hypre dependency by adding -int64. There might be a better way to do this, I've tried to not apply the petsc-3.13.0-make_hypre_configure.patch, as it also references the HYPRE BigInt installations, but it didn't work. Building hypre with USE=-int64 was the quickest and easiest way.

It also fixes a configuration warning for mumps, resulting from a typo, where use_with is used instead of petsc_with for USE=mumps.
Comment 5 Ionen Wolkens gentoo-dev 2021-02-20 12:05:30 UTC
Couldn't reproduce at first but unsurprisingly could after I rebuilt openmpi with USE=cuda. I'll assume that's what you're using.
Comment 6 Bernd 2021-02-20 12:37:01 UTC
Good catch! I noticed some cuda related output, but couldn't see the source of these. Yes, I'm using openmpi[cuda].
Comment 7 Larry the Git Cow gentoo-dev 2021-04-09 18:26:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22b0aca66e91fa237da5a093082046fb952bebbc

commit 22b0aca66e91fa237da5a093082046fb952bebbc
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2021-04-09 16:29:09 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2021-04-09 18:26:15 +0000

    sci-mathematics/petsc: add addpredict statement
    
    Closes: https://bugs.gentoo.org/771711
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 sci-mathematics/petsc/petsc-3.13.1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)