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
Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.
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
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
-
- Posts: 5
- Joined: Thu Oct 20, 2022 1:08 pm
- Nicola Spallanzani
- Posts: 93
- Joined: Thu Nov 21, 2019 10:15 am
Re: Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.
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.
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
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
-
- 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.
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
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
-
- 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.
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
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
-
- 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.
Dear team Yambo,
I'm trying to install version 5.1.1 but facing the following error message-
The 'config.log' file is attached for reference.
Can someone please help with this?
Thank you,
Pushpendra
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
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/
Ph.D. Research Scholar
Quantum Transport and Theory Group
Department of Physics
Indian Instittute of Technology Kanpur, India.
https://sites.google.com/site/amitkag1/
- Nicola Spallanzani
- Posts: 93
- Joined: Thu Nov 21, 2019 10:15 am
Re: Compilation trouble of Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK.
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
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
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