[petsc-users] Help with compiling PETSc on Summit with gcc 12.1.0

Zhang, Chonglin chonglin.zhang at und.edu
Fri Feb 9 16:55:50 CST 2024


I don’t understand the reason, but I think I figured out a solution by trial and error. Basically, I just copied the configure line from “configure.log” file to terminal, deleted the “--with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90” arguments, and added the “--with-mpi-dir=”xxx”” argument, as below. With this it was able to configure. (need to test it can compile now).

./configure --with-mpiexec="jsrun -g 1" --with-shared-libraries=1 --with-debugging=yes --COPTFLAGS="-g -Ofast -mcpu=power9 -fPIC" --CXXOPTFLAGS="-g -Ofast -mcpu=power9 -fPIC" --FOPTFLAGS="-g -Ofast -mcpu=power9 -fPIC" --with-cuda=1 --with-fortran-bindings=0 --with-batch=0 --with-cuda-arch=70 --with-cudac=nvcc --download-metis --download-parmetis --with-blaslapack-lib="-L/sw/summit/spack-envs/summit-plus/opt/gcc-12.1.0/netlib-lapack-3.11.0-g3vx4sojdbcj5ph6t4gzimzbtkfjpn4y/lib64 -lblas -llapack" --download-triangle --with-make-np=4 --with-mpi-dir="/sw/summit/spack-envs/summit-plus/opt/gcc-12.1.0/spectrum-mpi-10.4.0.6-20230210-db5xakaaqowbhp3nqwebpxrdbwtm4knu" PETSC_ARCH=arch-summit

Thanks,
Chonglin
From: petsc-users <petsc-users-bounces at mcs.anl.gov> on behalf of Zhang, Chonglin <chonglin.zhang at und.edu>
Date: Friday, February 9, 2024 at 4:21 PM
To: Barry Smith <bsmith at petsc.dev>
Cc: petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>
Subject: Re: [petsc-users] Help with compiling PETSc on Summit with gcc 12.1.0
Thanks Barry! I am still getting the same error message. Any more suggestions?

I can see that library from the login node:
lrwxrwxrwx 1 sauesw ccsstaff 29 Jan 16 16:39 /sw/summit/spack-envs/summit-plus/opt/gcc-12.1.0/spectrum-mpi-10.4.0.6-20230210-db5xakaaqowbhp3nqwebpxrdbwtm4knu/lib/libmpi_ibm_usempif08.so -> libmpi_ibm_usempif08.so.3.1.0

Thanks,
Chonglin
From: Barry Smith <bsmith at petsc.dev>
Date: Friday, February 9, 2024 at 4:10 PM
To: Zhang, Chonglin <chonglin.zhang at und.edu>
Cc: petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>
Subject: Re: [petsc-users] Help with compiling PETSc on Summit with gcc 12.1.0

 error while loading shared libraries: libmpi_ibm_usempif08.so: cannot open shared object file: No such file or directory

 So using the mpif90 does not work because it links a shared library that cannot be found at run time.

 Perhaps that library is only visible on the bach nodes. You can tryed adding -with-batch=0 to the ./configure options


  Barry


On Feb 9, 2024, at 5:01 PM, Zhang, Chonglin <chonglin.zhang at und.edu> wrote:

Dear PETSc developers,

I am trying to compile PETSc on Summit with gcc 12.1.0 and spectrum-mpi 10.4.0.6, but encountered the following configuration issues:

=============================================================================================
                      Configuring PETSc to compile on your system
=============================================================================================
TESTING: checkFortranCompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:1271)                                                                                                                                        *******************************************************************************
                    OSError while running ./configure
-------------------------------------------------------------------------------
Cannot run executables created with FC. If this machine uses a batch system
to submit jobs you will need to configure using ./configure with the additional option  --with-batch.
 Otherwise there is problem with the compilers. Can you compile and run code with your compiler 'mpif90'?
*******************************************************************************

Also attached is the configure.log file. Could you help with this issue?

Thanks,
Chonglin



<configure.log>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240209/a306bce7/attachment.html>


More information about the petsc-users mailing list