[petsc-users] Compiling PETSc in Polaris with gnu

Satish Balay balay at mcs.anl.gov
Thu May 2 10:58:21 CDT 2024


I just tried a build  (used default versions) - and the following builds for me [on the login node].


module use /soft/modulefiles
module load PrgEnv-gnu
module load cudatoolkit-standalone
module load cray-libsci
./configure --with-cc=cc --with-fc=ftn --with-cxx=CC --with-make-np=4 --with-cuda=1 --with-cudac=nvcc --with-cuda-arch=80 \
  --with-debugging=0 COPTFLAGS=-O2 CXXOPTFLAGS=-O2 FOPTFLAGS=-O2 CUDAOPTFLAGS=-O2 --download-kokkos --download-kokkos-kernels
make

Satish

---

balay at polaris-login-01:~> module list

Currently Loaded Modules:
  1) libfabric/1.15.2.0       4) darshan/3.4.4     7) cray-dsmml/0.2.2   10) cray-pals/1.3.4     13) PrgEnv-gnu/8.5.0
  2) craype-network-ofi       5) gcc-native/12.3   8) cray-mpich/8.1.28  11) cray-libpals/1.3.4  14) cudatoolkit-standalone/12.2.2
  3) perftools-base/23.12.0   6) craype/2.7.30     9) cray-pmi/6.1.13    12) craype-x86-milan    15) cray-libsci/23.12.5


On Thu, 2 May 2024, Junchao Zhang wrote:

> I used cudatoolkit-standalone/12.4.1 and gcc-12.3.
> 
> Be sure to use the latest petsc/main or petsc/release, which contains fixes
> for Polaris.
> 
> --Junchao Zhang
> 
> 
> On Thu, May 2, 2024 at 10:23 AM Satish Balay via petsc-users <
> petsc-users at mcs.anl.gov> wrote:
> 
> > Try:
> >
> > module use /soft/modulefiles
> >
> > Satish
> >
> > On Thu, 2 May 2024, Vanella, Marcos (Fed) via petsc-users wrote:
> >
> > > Hi all, it seems the modules in Polaris have changed (can't find
> > cudatoolkit-standalone anymore).
> > > Does anyone have recent experience compiling the library with gnu and
> > cuda in the machine?
> > > Thank you!
> > > Marcos
> > >
> >
> >
> 


More information about the petsc-users mailing list