Compilation issue of the latest yambo 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 issue of the latest yambo with nvcc and nvfortran from NVIDIA HPC SDK.

Post by alberasson » Thu Oct 19, 2023 1:49 pm

Dear All,
I previously installed Yambo-5.1.1 with nvcc and nvfortran from NVIDIA HPC SDK with the help of Nicola's suggestion. I upgraded the HPC SDK to the latest Cuda 12.2 version and downloaded the latest Yambo code.
I keep the latest configuration suggesstion of Nicola, which is:
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=cuda12.2,cc75 \
--enable-mpi --enable-open-mp \
--enable-msgs-comps \
--enable-time-profile \
--enable-memory-profile

The compilation failed with the following error:
make[2]: *** [/usr/share/q-e/yambo/config/mk/local/rules.mk:9: mod_pars.o] Error 2
make[2]: *** Waiting for unfinished jobs....
(echo "\t[src/modules] mod_drivers" )
\t[src/modules] mod_drivers
(echo "\t[src/modules] mod_openmp" )
\t[src/modules] mod_openmp
(echo "\t[src/modules] mod_lexical_sort" )
\t[src/modules] mod_lexical_sort
(echo "\t[src/modules] mod_cusolverdn_y" )
\t[src/modules] mod_cusolverdn_y
\t[driver] yambo (setup)
yambo linking failed. Check log/compile_yambo.log
make[1]: *** [config/mk/global/actions/compile_yambo.mk:42: yambo] Error 1
yambo build failed


I will appreciate any suggestions to solve this issue.

Kind regards

Albert

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

Re: Compilation issue of the latest yambo with nvcc and nvfortran from NVIDIA HPC SDK.

Post by Nicola Spallanzani » Fri Oct 20, 2023 8:42 am

Hi Albert,
could you send the file log/compile_yambo.log and also the file config/report ?

Best,
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

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

Re: Compilation issue of the latest yambo with nvcc and nvfortran from NVIDIA HPC SDK.

Post by alberasson » Fri Oct 20, 2023 3:31 pm

Thank you, Nicola,

I have attached the requested files.

Kind regards
You do not have the required permissions to view the files attached to this post.

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

Re: Compilation issue of the latest yambo with nvcc and nvfortran from NVIDIA HPC SDK.

Post by Nicola Spallanzani » Mon Oct 30, 2023 10:02 am

Hi Albert,
it seams yambo is trying to use some of the libraries installed previously and compiling some other. But since you have changed the version of the compiler it is better to start from scratch recompiling all the libraries.
In fact the error is related to the missing of the netcdf module, one of the libraries that is trying to recompile but that depends on the hdf5 library that was compiled with the old compiler. If you check the file log/compile_netcdf.log probably it reports the failure of the netcdf compilation.

So, my suggestion is to compile everything from scratch, also the libraries, in a new directory.

Best,
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