run yambo

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
sdwang
Posts: 287
Joined: Fri Apr 09, 2010 12:30 pm

run yambo

Post by sdwang » Fri Apr 09, 2010 1:27 pm

Dear developers;
I install netcdf first and it run well.Then I install yambo as the following procedure:
1. ./configure --with-netcdf-include=/home/sdwang/netcdf/include/ --with-netcdf-lib=/home/sdwang/netcdf/lib/ --with-iotk=/home/raman/espresso-3.2.3/iotk/ --with-p2y=3.2
2. I got :
[VER] 3.2.1 r.448
#
# [SYS] linux@x86_64
# [SRC] /home/sdwang/yambo-3.2.1-r.448
# [BIN] /home/sdwang/yambo-3.2.1-r.448/bin
# [FFT] Goedecker Fast Fourier transform with 0 cache
#
# [ ] Double precision
# [X] Redundant compilation
# [X] MPI
# [X] PW (3.2) support
# [ ] ETSF I/O support
# [ ] SCALAPACK
# [ ] NETCDF/Large Files
# [XX ] Built-in BLAS/LAPACK/LOCAL
#
# [ CPP ] gcc -E -P
# [ C ] gcc -g -O2 -D_C_US -D_FORTRAN_US
# [MPICC] mpicc -g -O2 -D_C_US -D_FORTRAN_US
# [ F90 ] ifort -assume bscc -O3 -ip -tpp7
# [MPIF ] mpif90 -assume bscc -O3 -ip -tpp7
# [ F77 ] ifort -assume bscc -O3 -ip -tpp7
# [Cmain] -nofor_main
# [NoOpt] -assume bscc -O0 -tpp7
#
# [ MAKE ] make
# [EDITOR] vi
3. make all

Then I reach in the sample/bulk_silicon/,and do
gunzip database_DB1_NETCDF_format.gz
> /home/sdwang/netcdf/bin/ncgen -o ns.db1 database_DB1_NETCDF_format
> gunzip database_WF_NETCDF_format.gz
> /home/sdwang/netcdf/bin/ncgen -o ns.wf database_WF_NETCDF_format

after this, I input /home/sdwang/yambo-3.2.1-r.448/bin/yambo,but it appears

yambo: cannot access CORE database (SAVE/*db1 and/or SAVE/*wf)


What is my problem?

sd wang
Southeast University in Nanjing
S. D. Wang
IMU,HOHHOT,CHINA
E-mail: sdwang@imu.edu.cn

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: run yambo

Post by Daniele Varsano » Fri Apr 09, 2010 2:08 pm

From your configure oputput, the netcdf option is not crossed.
It means that they are not linked properly. Please check in config.log
what is happening, and if you cannot solve it, post here the config.log file.

Regards,

Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

sdwang
Posts: 287
Joined: Fri Apr 09, 2010 12:30 pm

Re: run yambo

Post by sdwang » Fri Apr 09, 2010 2:22 pm

This is my config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Yambo configure 3.2.1 r.448 , which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --with-netcdf-include=/home/sdwang/net/local/include/ --with-netcdf-lib=/home/sdwang/net/local/lib/ --with-iotk=/home/sdwang/espresso-3.2.3/iotk/ --with-p2y=3.2
You do not have the required permissions to view the files attached to this post.
S. D. Wang
IMU,HOHHOT,CHINA
E-mail: sdwang@imu.edu.cn

User avatar
andrea marini
Posts: 325
Joined: Mon Mar 16, 2009 4:27 pm
Contact:

Re: run yambo

Post by andrea marini » Fri Apr 09, 2010 2:27 pm

Dear sdwang, I have edited your post. Please attach big files as gzipped attachments. Otherwise the post is unreadable.
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: run yambo

Post by Daniele Varsano » Fri Apr 09, 2010 4:27 pm

Dear Sdwang

looking at the logfile you post, there is not any reference to the netcdf libraries.
Please, be sure to include the right path in the options:
--with-netcdf-include=
and
--with-netcdf-lib=


i.e.: it is present libnetcdf.a in /home/sdwang/net/local/lib/ ?
moreover it is important that the netcdf library are compiled with the same compiler you are
compiling yambo.

Regards,

Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

sdwang
Posts: 287
Joined: Fri Apr 09, 2010 12:30 pm

Re: run yambo

Post by sdwang » Sat Apr 10, 2010 10:46 am

If I want to configure with f95,should I set :./configure --with-netcdf-include=/home/sdwang/net/local/include/ --with-netcdf-lib=/home/sdwang/net/local/lib/ --with-iotk=/home/sdwang/espresso-3.2.3/iotk/ --with-p2y=3.2 --enable-f95?

Or, I want to use F95 configure the yambo, What I should do?

Thanks!
S. D. Wang
IMU,HOHHOT,CHINA
E-mail: sdwang@imu.edu.cn

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: run yambo

Post by Daniele Varsano » Sat Apr 10, 2010 10:59 am

Dear Sdwang,

let me ask you to fill your signature when submitting a post. You can do it directly in your profile. This is a rule of the forum.


In this way it should work:

/configure --with-netcdf-include=/home/sdwang/net/local/include/ --with-netcdf-lib=/home/sdwang/net/local/lib/ --with-iotk=/home/sdwang/espresso-3.2.3/iotk/ --with-p2y=3.2 FC=f95

otherwise export your compiler variable before configuring Yambo:

export FC=f95
./configure .....

Regards,

Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

sdwang
Posts: 287
Joined: Fri Apr 09, 2010 12:30 pm

Re: run yambo

Post by sdwang » Sat Apr 10, 2010 11:26 am

I compile yambo with:
./configure --with-netcdf-include=/home/sdwang/netcdf/include/ --with-netcdf-lib=/home/sdwang/netcdf/lib/ --with-iotk=/home/sdwang/espresso-3.2.3/iotk/ --with-p2y=3.2 FC=ifort, and then "make all" ,the result is:
#
# [VER] 3.2.1 r.448
#
# [SYS] linux@x86_64
# [SRC] /home/sdwang/yambo-3.2.1-r.448
# [BIN] /home/sdwang/yambo-3.2.1-r.448/bin
# [FFT] Goedecker Fast Fourier transform with 0 cache
#
# [ ] Double precision
# [X] Redundant compilation
# [X] MPI
# [X] PW (3.2) support
# [ ] ETSF I/O support
# [ ] SCALAPACK
# [X ] NETCDF/Large Files
# [XX ] Built-in BLAS/LAPACK/LOCAL
#
# [ CPP ] gcc -E -P
# [ C ] gcc -g -O2 -D_C_US -D_FORTRAN_US
# [MPICC] mpicc -g -O2 -D_C_US -D_FORTRAN_US
# [ F90 ] ifort -assume bscc -O3 -ip -tpp7
# [MPIF ] mpif90 -assume bscc -O3 -ip -tpp7
# [ F77 ] ifort -assume bscc -O3 -ip -tpp7
# [Cmain] -nofor_main
# [NoOpt] -assume bscc -O0 -tpp7
#
# [ MAKE ] make
# [EDITOR] vi
#


and NETCDF is compiled with ./configure FC=ifort prefix==/home/sdwang/netcdf/, it seems right.
But "yambo: cannot access CORE database (SAVE/*db1 and/or SAVE/*wf)" also appears.


Sdwang

Southeast University

User avatar
andrea marini
Posts: 325
Joined: Mon Mar 16, 2009 4:27 pm
Contact:

Re: run yambo

Post by andrea marini » Sat Apr 10, 2010 1:41 pm

sdwang wrote: and NETCDF is compiled with ./configure FC=ifort prefix==/home/sdwang/netcdf/, it seems right.
But "yambo: cannot access CORE database (SAVE/*db1 and/or SAVE/*wf)" also appears.
This is very strange. If you compiled with NETCDF support then you should be able to read the databases. So let's move step by step
  1. Do a make clean_all and Post the list of files in the lib and include directories immediately after the configure. You should see something like

    Code: Select all

    ./lib/libnetcdf_c++.a
    ./lib/libnetcdf.a
    ./config/netcdf_f90.m4
    ./include/netcdf.mod
    ./include/netcdf.h
    ./include/netcdf.inc
    ./include/netcdfcpp.h
    ./include/netcdf.hh
    
    If these files are present then yambo will be properly compiled.
  2. Are you sure you're running the code UP of the SAVE folder ? Please post the result of ls -R in the directory where you're running yambo.

Sdwang
Southeast University
Please.... we do need you COMPLETE name and your COMPLETE affiliation. I have no idea where the Southeast University and I am sure your name is not only sdwang! Edit these informations in your signature that you can access via your User control panel.
Andrea MARINI
Istituto di Struttura della Materia, CNR, (Italy)

sdwang
Posts: 287
Joined: Fri Apr 09, 2010 12:30 pm

Re: run yambo

Post by sdwang » Sun Apr 11, 2010 6:20 am

This my configure.log of yambo-3.2.1-r.448 and netcdf-4.0.1,please check it.Thanks!

Shudong Wang

Department of Physics os Southeast University in Nanjing ,China
You do not have the required permissions to view the files attached to this post.
S. D. Wang
IMU,HOHHOT,CHINA
E-mail: sdwang@imu.edu.cn

Post Reply