Seg. fault. on yambo-4.2.1

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
robertap
Posts: 9
Joined: Mon Feb 26, 2018 2:30 pm

Re: Seg. fault. on yambo-4.2.1

Post by robertap » Fri Mar 02, 2018 10:42 am

Dear Daniele,
thanks a lot for taking the time to run the this calculation.
Both gvector.dat and gkvectors.dat are written, and apparenty correctly (they end with the same line </G-VECTORS> and </GK-VECTORS> as in the calculations that runs without problem on another machine).

On the other hand the fortran error suggests it might be a format issue, right? Since it is [ERROR]Error in qexml_read_planewaves fmt error ierr: 2

In any case I'll keep looking into it.
Thanks again
Roberta
--
Roberta Poloni
CNRS, Laboratoire SIMaP
Univ. Grenoble Alpes, France
Tel: +33 (0) 476 82 67 25
roberta.poloni AT simap.grenole-inp.fr

robertap
Posts: 9
Joined: Mon Feb 26, 2018 2:30 pm

Re: Seg. fault. on yambo-4.2.1

Post by robertap » Fri Mar 02, 2018 11:59 am

Sorry again,

now I have another segmentation fault in the calculation of RPA epsilon of hBN. You helped solve the problem before by using --enable-int-linalg, and the calculation ran smoothly for the exchange self operator, but now it fails again at the RPA level.

<---> [01] CPU structure, Files & I/O Directories
<---> CPU-Threads:1(CPU)-12(threads)
<---> [02] CORE Variables Setup
<---> [02.01] Unit cells
<---> [02.02] Symmetries
<---> [02.03] RL shells
<---> [02.04] K-grid lattice
<---> [02.05] Energies [ev] & Occupations
<---> [03] Transferred momenta grid
<01s> [04] Optics
<01s> [LA] SERIAL linear algebra
<01s> [DIP] Checking dipoles header
<01s> [WF] Performing Wave-Functions I/O from ./SAVE
<01s> [FFT-X] Mesh size: 12 12 27
<01s> [X-CG] R(p) Tot o/o(of R) : 124 1152 100
<01s> Xo@q[1] | | [000%] --(E) --(X)[froggy2:08294] *** Process received signal ***
Segmentation fault (core dumped)


At this point I have yambo-4.2.1 installed in two machines (both use qe-6.1 outpus), in one machine it runs fine in serial and parallel (just tested for 2 cores) for all examples of hBN, but fails to convert the qe-6.1 output of a system I an interested in. In another machine, it converts correctly this system with p2y but the yambo calculations have systematically seg. fault errors (already at the hBN setp, epsilon).

At this point my wish is to have it work properly in at least one machine :)

Maybe I can share the config.log of the installation that gives seg. fault error? It was compiled using internal blas, and external netcdf and fft.

I have also compiled it using exclusively internal libraries. And same issue.

I would appreciate any advice, tests to make, things to look, recompilation ect...

Thanks in advance
Roberta
You do not have the required permissions to view the files attached to this post.
--
Roberta Poloni
CNRS, Laboratoire SIMaP
Univ. Grenoble Alpes, France
Tel: +33 (0) 476 82 67 25
roberta.poloni AT simap.grenole-inp.fr

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

Re: Seg. fault. on yambo-4.2.1

Post by Daniele Varsano » Fri Mar 02, 2018 10:34 pm

Dear Roberta,
this sounds really strange, can you please post your input and report file?
what happens with a simple
./configure --enable-int-linalg
(a make clean_all is needed before recompiling).

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/

robertap
Posts: 9
Joined: Mon Feb 26, 2018 2:30 pm

Re: Seg. fault. on yambo-4.2.1

Post by robertap » Fri Mar 09, 2018 10:56 am

dear Daniele,

the seg. fault seems to be due to OpenMP.

Using intelmpi/14, ifort(14) and open-mp, the compilation is OK but execution gives seg. fault at various levels depending on the system (BN or larger system). By removing the open-mp option and keeping everything else the same AT COMPILATION everything works. Even if open-mp is not used for the calculation but still enabled during compilation, the seg. fault error still occurs.

Thanks
Roberta
--
Roberta Poloni
CNRS, Laboratoire SIMaP
Univ. Grenoble Alpes, France
Tel: +33 (0) 476 82 67 25
roberta.poloni AT simap.grenole-inp.fr

Online
User avatar
claudio
Posts: 457
Joined: Tue Mar 31, 2009 11:33 pm
Location: Marseille
Contact:

Re: Seg. fault. on yambo-4.2.1

Post by claudio » Mon Mar 12, 2018 9:55 pm

Dear Roberta

I got a similar error with ifort13 + openmpi,
it seems there is a problem in the present open-mp implementation of yambo
with some systems.

the only solution is to compile without open-mp

Best
Claudio
Claudio Attaccalite
[CNRS/ Aix-Marseille Université/ CINaM laborarory / TSN department
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09
web site: http://www.attaccalite.com

User avatar
Davide Sangalli
Posts: 614
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: Seg. fault. on yambo-4.2.1

Post by Davide Sangalli » Mon Mar 19, 2018 11:10 am

Dear Roberta,
I'll look into this problem of the compilation with OpenMP.

Did it work compiling yambo without OpenMP as Claudio suggested ?
At this point I have yambo-4.2.1 installed in two machines (both use qe-6.1 outpus), in one machine it runs fine in serial and parallel (just tested for 2 cores) for all examples of hBN, but fails to convert the qe-6.1 output of a system I an interested in. In another machine, it converts correctly this system with p2y but the yambo calculations have systematically seg. fault errors (already at the hBN setp, epsilon).

At this point my wish is to have it work properly in at least one machine
Meanwhile if you are able to convert on one machine and run on another, another solution could be to convert the DBs and then move on the machine where yambo is working.
The NETCDF DBs are not machine dependent.

For the conversion error I suspect it is due on how pwscf is compiled on the super-computer.
I think it may not write some info needed by yambo in same cases and then the conversion does not work properly.

Best,
D.
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

robertap
Posts: 9
Joined: Mon Feb 26, 2018 2:30 pm

Re: Seg. fault. on yambo-4.2.1

Post by robertap » Mon Mar 19, 2018 4:41 pm

Dear Davide,

thank you for your feedback.

Yes, after removing the openmp option at compilation everything works fine. Although I have very big systems I do have access to nodes with large memory so I guess that is not a problem at the moment (I haven't done BSE yet, only GW).

Regarding the other compilation where conversion fails, I will try to copy the conversion as you suggest (or the pwscf output files and convert them). I guess once I'll be back from the conference I will be able to see if yambo-4.2.1 works when compiled with openmp and a more recent intel version (intel/17 is available on this machine).

thanks again for your help

Roberta
--
Roberta Poloni
CNRS, Laboratoire SIMaP
Univ. Grenoble Alpes, France
Tel: +33 (0) 476 82 67 25
roberta.poloni AT simap.grenole-inp.fr

Post Reply