Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
Post Reply
alberasson
Posts: 5
Joined: Thu Oct 20, 2022 1:08 pm

Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.

Post by alberasson » Thu Oct 20, 2022 3:54 pm

Dear all,
I am trying to install Yambo-5.1.1 either alone or with quantum espresso. I used nvcc and nvfortran from NVIDIA HPC SDK. In both cases, the configuration fails with the error :

"configure: testing FC-preprocessor pgfortran -Mpreprocess -E
checking if FC precompiler works on FC source... no
configure: error: Found FC precompiler problems in processing FC source."

I have used the configuration suggested by Daniele Varsano » Sat Jun 12, 2021, 4:43 am.
In short, here is the adapted suggested summary:
export FC=pgf90 or nvfortran
export F77=pgfortran or pg77, nvfortran
export CPP='cpp -E'
export CC=pgcc
export FPP="pgfortran -Mpreprocess -E"
export F90SUFFIX=".f90"
export MPIFC=mpifort
export MPIF77=mpifort
export MPICC=mpicc
...
./configure FC=$FC F77=$F77 CPP="cpp -E" CC=$CC MPIFC=$MPIFC MPIF77=$MPIF77 MPICC=$MPICC \
--with-blas-libs="-lblas" \
--with-lapack-libs="-llapack" \
--enable-cuda=cuda11.7,cc70 \
--enable-mpi --enable-open-mp \
--enable-msgs-comps \
--enable-time-profile \
--enable-memory-profile

I am using NVIDIA HPC SDK on the centos 8 stream, in which quantum espresso work without problem.

I will appreciate any suggestions.

Kinds regards

Albert

User avatar
Nicola Spallanzani
Posts: 62
Joined: Thu Nov 21, 2019 10:15 am

Re: Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.

Post by Nicola Spallanzani » Tue Oct 25, 2022 8:50 am

Dear Albert,
the problem is the Fortran preprocessor, so simply with this modification it should works:
export FPP="nvfortran -Mpreprocess -E"

But, I suggest you this full procedure:

export FC=nvfortran
export F77=nvfortran
export CC=nvc
export MPIFC=mpif90
export MPIF77=mpif77
export MPICC=mpicc
export MPICXX=mpic++
export CPP='cpp -E'
export FPP="nvfortran -Mpreprocess -E"

./configure \
--with-blas-libs="-lblas" \
--with-lapack-libs="-llapack" \
--enable-cuda=cuda11.7,cc70 \
--enable-mpi --enable-open-mp \
--enable-msgs-comps \
--enable-time-profile \
--enable-memory-profile

Best regards,
Nicola

PS: check if the cuda 11.7 is the one used in the nvhpc sdk.

Code: Select all

ls -l $NVHPC_ROOT/cuda
Nicola Spallanzani, PhD
S3 Centre, Istituto Nanoscienze CNR and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu

alberasson
Posts: 5
Joined: Thu Oct 20, 2022 1:08 pm

Re: Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.

Post by alberasson » Wed Oct 26, 2022 3:11 pm

Dear Nicola,

Thank you for your suggestion. Using export FPP="nvfortran -Mpreprocess -E" doesn't solve the Fortran preprocessor issue. I have checked Cuda 11.7 is the one used in the nvhpc sdk.
Is it possible to have a make.inc of Yambo-5.1.1, which I could modify to bypass this issue?

Kind Regards

Albert

alberasson
Posts: 5
Joined: Thu Oct 20, 2022 1:08 pm

Re: Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.

Post by alberasson » Tue Nov 08, 2022 5:19 pm

Dear Nicola,

Thank you for your suggestion. I just migrated to the centos 9 stream, and the compilation was successful. The problem was due centos 8 stream.

Kind Regards

Albert

pyadav
Posts: 86
Joined: Thu Nov 26, 2020 2:56 pm
Contact:

Re: Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.

Post by pyadav » Tue Nov 08, 2022 8:26 pm

Dear team Yambo,

I'm trying to install version 5.1.1 but facing the following error message-

Code: Select all

make[2]: *** [qeh5_module.o] Error 1
make[1]: *** [p2y] Error 1
p2y build failed

The 'config.log' file is attached for reference.
config.log
Can someone please help with this?
Thank you,

Pushpendra
You do not have the required permissions to view the files attached to this post.
Pushpendra Yadav
Ph.D. Research Scholar
Quantum Transport and Theory Group
Department of Physics
Indian Instittute of Technology Kanpur, India.

https://sites.google.com/site/amitkag1/

User avatar
Nicola Spallanzani
Posts: 62
Joined: Thu Nov 21, 2019 10:15 am

Re: Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.

Post by Nicola Spallanzani » Mon Nov 14, 2022 2:36 pm

Dear Pushpendra,
from the config.log I see that probably there is a problem with the path of the intel installation. But I'm not sure this can be the problem that causes the error.
Anyway, could you send the config/report file and the last file written in the log/ directory?

Best regerds,
Nicola
Nicola Spallanzani, PhD
S3 Centre, Istituto Nanoscienze CNR and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu

Post Reply