You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On cray systems like perlmutter and polaris petsc as built by spack will have the petscvariables file set PCC/CC and other relevant compiler/linker variables to the path to mpicc (e.g. /opt/cray/pe/mpich/8.1.16/ofi/gnu/9.1/bin/mpicc). This works in some cases but cray's mpicc will not enable gpu accelerated mpi. The cc compiler must be specified for this functionality. Currently executables built using PETSc's provided make variables will fail to run unless MPICH GPU support is deactivated.
This configuration situation is caused by
"--with-cc=%s" % self.spec["mpi"].mpicc,
In the mpi variant case in the package. I think when cray is detected the package should instead use the default compiler: "--with-cc=%s" % os.environ["CC"],
Hm - 'modules' I guess work from CC - but not mpicc. So my recollection of my spack install could be wrong [I might have just tested without gpu enabled mpi]
On cray systems like perlmutter and polaris petsc as built by spack will have the petscvariables file set PCC/CC and other relevant compiler/linker variables to the path to mpicc (e.g. /opt/cray/pe/mpich/8.1.16/ofi/gnu/9.1/bin/mpicc). This works in some cases but cray's mpicc will not enable gpu accelerated mpi. The cc compiler must be specified for this functionality. Currently executables built using PETSc's provided make variables will fail to run unless MPICH GPU support is deactivated.
This configuration situation is caused by
"--with-cc=%s" % self.spec["mpi"].mpicc,
In the mpi variant case in the package. I think when cray is detected the package should instead use the default compiler: "--with-cc=%s" % os.environ["CC"],
@balay @BarrySmith @jedbrown @eugeneswalker
The text was updated successfully, but these errors were encountered: