segmentation fault for high q-grid

Hi,

I keep getting :

mpirun noticed that process rank 14 with PID 31325 on node ncb044.ceg.asu.edu exited on signal 11 (Segmentation fault)mpirun noticed that process rank 14 with PID 31325 on node ncb044 exited on signal 11 (Segmentation fault)

when k-grid is 20x20x20 and q-grid is 40x40x40 or higher.
For k-grid is 20x20x20 and q-grid is 20x20x20 the job run successfully.

QE+EPW is compiled with : GNU Fortran (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)

and LAPACK_LIBS = $(TOPDIR)/LAPACK/liblapack.a $(TOPDIR)/LAPACK/libblas.a

I considered memory to be an issue so checked: less /proc/meminfo
MemTotal: 131930920 kB
MemFree: 103500560 kB
MemAvailable: 129815288 kB

Can you suggest where else I should look?

There is one more issue. For the same job, if "epwread = .true." is set, and the job
is run for the same dense grid above, I get the following error message:

At line 221 of file ephwann_shuffle.f90
Fortran runtime error: Attempting to allocate already allocated variable ‘tau’

mpirun has exited due to process rank 0 with PID 683 on
node ncb044.ceg.asu.edu exiting improperly. There are two reasons this could occur:

  1. this process did not call "init" before exiting, but others in
    the job did. This can cause a job to hang indefinitely while it waits
    for all processes to call "init". By rule, if one process calls "init",
    then ALL processes must call "init" prior to termination.

  2. this process called "init", but exited without calling "finalize".
    By rule, all processes that call "init" MUST call "finalize" prior to
    exiting or it will be considered an "abnormal termination"

This may have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).

Any help with both the issues would be great.

Thanks and regards,

Nandan.

Hello Nandan,

For a restart, tau should not be allocated until 221.

Can you check that your crystal.fmt file is not corrupted.

You should also have:
kmaps = .true.
epbwrite = .false.
epbread = .false.
epwwrite = .false.
epwread = .true.

For the 40x40x40 issue, could you try 40x40x40 k-point with 40x40x40 q-point to see if it works.
If its too expansive you could try 30x30x30 k and q.

It should in principle work to have q grid > k grid but its not very commun. In general you want k> qgrid.

Best,

Samuel

Thanks Samuel.

The error was happening when the setting was as below. Since I have
elecselfen=.true., I have q-grid > k-grid:

elph = .true.
kmaps = .true.
epbread = .true.
epwread = .true.
etf_mem = .false.
wannierize = .false.
lpolar = .true.

elecselfen = .true.
phonselfen = .false.

the k/q= 40x40x40 crashed immediately with the earlier segmentation fault error.

Now, reduced it to 30x30x30 which is running with the suggested setting.

Nandan.

Hello,

As I mentioned in my previous post, you need epbread = .false. for successful restart.

Best,

Samuel

If, as you suggested, I set

epbwrite = .false.
epbread = .false.

then what is actually happening?

Meanwhile I have been running the case with 30x30x30 k and q.

Nandan.

Well its reading from the real-space Wannier with epwread = .true.

The epb files are only intermediated quantity.
You do not need them once you have the XX.epmatwp1 files.

Best,

Samuel

GaN with following input fails with error:

mpirun noticed that process rank 7 with PID 25546 on node ncb005 exited on signal 11 (Segmentation fault).

elph = .true.
epbread = .false.
epbwrite = .true.
epwread = .false.
epwwrite = .true.

kmaps = .false.

etf_mem = .false.

nbndsub = 16
nbndskip = 0

dis_win_max = 21.5
dis_froz_max= 4

wannierize = .true.
num_iter = 5000
iprint = 2
proj(1) = ‘random’
proj(2) = ‘N:sp3’

elecselfen = .true.
phonselfen = .false.

parallel_k = .true.
parallel_q = .false.

fsthick = 1.d10
eptemp = 300.d0
degaussw = 0.002

dvscf_dir = ‘../phonons/save’
filukk = ‘./gan.ukk’
lpolar = .true.
iverbosity = 3

nk1 = 6
nk2 = 6
nk3 = 6

nq1 = 6
nq2 = 6
nq3 = 6

nkf1 = 20
nkf2 = 20
nkf3 = 20

nqf1 = 50
nqf2 = 50
nqf3 = 50

Where as a somewhat smaller k/q-grid run without error. The crystal.fmt file seems fine.

Nandan.

I am still confused with the issue of presence of
XX.epmatwp1 and XX.epmatwe1 files and the number of processors/pools.

A GaN calculations where *.epmatwp1 and *.epmatwe1 were
written and 40 processor/pools were used completed without error.

So I restarted the job with
epbwrite = .false.
epbread = .false.
epwwrite = .false.
epwread = .true.

and 120 processor/pools for a denser k-q mesh. That job crashed with
segmentation fault.

Does the number of procs and pools to be kept constant even for subsequent
calculations of denser grids?

If both XX.epmatwp1 and XX.epmatwe1 are present, should the job
be restarted with:
epbwrite = .false.
epbread = .false.
epwwrite = .false.
epwread = .false.

Regards,

Nandan.

ECE
Michigan State University.

Hello,

If you have EPW v4.1, you should indeed be able to do
epbwrite = .false.
epbread = .false.
epwwrite = .false.
epwread = .true.

and 120 processor/pools for a denser k-q mesh.
That should work regardless of the nb of processors used before.

You should also have kmaps =.true.

Please provide the segfault with more information if possible (usually PBE generate an .o and .e files that contain information and slurm generates the slurm files, both should give more info than just "segfault".

Best,

Samuel

Hi Samuel,

Thanks for the reply. I have sent error message to your email.

I am using EPW-4.1 and I am using:

kmaps=.true.
epbwrite = .false.
epbread = .false.
epwwrite = .false.
epwread = .true.

Nandan.

Hello Nandan,

I cannot see your email.

In any case, you can post your error message here even if its long.

Just use the [code] balise and it will be smaller with a navigation bar.

Best,

Samuel

Hi Samuel,

The error message is just multiple repetitions of the following:

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
epw.x 0000000000E261D1 Unknown Unknown Unknown
epw.x 0000000000E24927 Unknown Unknown Unknown
epw.x 0000000000DC46B4 Unknown Unknown Unknown
epw.x 0000000000DC44C6 Unknown Unknown Unknown
epw.x 0000000000D57D6F Unknown Unknown Unknown
epw.x 0000000000D5EF9D Unknown Unknown Unknown
libpthread.so.0 00002AEED9CD2710 Unknown Unknown Unknown
epw.x 000000000096DFF7 Unknown Unknown Unknown
epw.x 00000000004631AD Unknown Unknown Unknown
epw.x 0000000000451C44 Unknown Unknown Unknown
epw.x 0000000000412A49 Unknown Unknown Unknown
epw.x 0000000000411CBE Unknown Unknown Unknown
libc.so.6 00002AEED9EFED5D Unknown Unknown Unknown
epw.x 0000000000411BC9 Unknown Unknown Unknown
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
epw.x 0000000000E261D1 Unknown Unknown Unknown
epw.x 0000000000E24927 Unknown Unknown Unknown
epw.x 0000000000DC46B4 Unknown Unknown Unknown
epw.x 0000000000DC44C6 Unknown Unknown Unknown
epw.x 0000000000D57D6F Unknown Unknown Unknown
epw.x 0000000000D5EF9D Unknown Unknown Unknown
libpthread.so.0 00002AD492260710 Unknown Unknown Unknown
epw.x 000000000096DFF7 Unknown Unknown Unknown
gan-work.e38018405

Regards,

Nandan.

The epw.out ends with:

94 No wavefunction gauge setting applied
95
96 -------------------------------------------------------------------
97 Using ./gan.ukk from disk
98 -------------------------------------------------------------------
99
100
101 Using kmap and kgmap from disk
102
103 Do not need to read .epb files; read .fmt files
104
105
106 band disentanglement is used: nbndsub = 16
107
108 Reading Hamiltonian, Dynamical matrix and EP vertex in Wann rep from file
109
110
111 Finished reading Wann rep data from file
112
113 Using uniform q-mesh: 40 40 40
114 Size of q point mesh for interpolation: 64000
115 Using uniform k-mesh: 30 30 30
116 Size of k point mesh for interpolation: 54000
117 Max number of k points per pool: 450
118 -------------------------------------------------------
119 Primary job terminated normally, but 1 process returned
120 a non-zero exit code.. Per user-direction, the job has been aborted.
121 -------------------------------------------------------
122 --------------------------------------------------------------------------
123 mpiexec detected that one or more processes exited with non-zero status, thus causing
124 the job to be terminated. The first process to do so was:
125
126 Process name: [[16793,1],108]
127 Exit code: 174
128 --------------------------------------------------------------------------

Not sure if that helps.

Nandan.

Hello,

What is the content of the file "gan-work.e38018405" ?

Is it what you showed above?

If so, it does not give much info indeed …

This crash is specific to his calculation or other restart works ?

Cheers,

Samuel

Yes, it is the gan-work.e38018405 file. This is happening all the time. Consider the following example which is the latest case to fail a restart.

The input file is:

kmaps = .true.
etf_mem = .false.
epbwrite = .false.
epbread = .false.

epwwrite = .false.
epwread = .true.

nbndsub = 16
nbndskip = 0

wannierize = .false.
num_iter = 5000
iprint = 2
dis_froz_max= 17.5
dis_froz_min= 10
proj(1) = ‘random’
proj(2) = ‘N:sp3’

iverbosity = 3

elecselfen = .true.
phonselfen = .false.

parallel_k = .true.
parallel_q = .false.

fsthick = 1.d10
eptemp = 300.d0
degaussw = 0.002

dvscf_dir = ‘/mnt/home/tandonna/work/GaN_666_qmesh/phonons/inp/save’
filukk = ‘./gan.ukk’

nk1 = 6
nk2 = 6
nk3 = 6

nq1 = 6
nq2 = 6
nq3 = 6

nkf1 = 30
nkf2 = 30
nkf3 = 30

nqf1 = 35
nqf2 = 35
nqf3 = 35

This was right after a calculation with the following mesh ended :

nqf=30x30x30

No changes to submit script were made. The error message again does not give much information.

epw.out ends with:

 Using uniform q-mesh:   35  35  35
 Size of q point mesh for interpolation:      42875
 Using uniform k-mesh:   30  30  30
 Size of k point mesh for interpolation:      54000
 Max number of k points per pool:              676

Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.


mpiexec detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

Process name: [[48056,1],8]
Exit code: 174

======================================

and error file has:

Error getting SCIF driver version

Inactive Modules:

  1. Boost 2) R 3) TBB

The following have been reloaded with a version change:

  1. OpenMPI/1.4.3 => OpenMPI/1.8.3

The following have been reloaded with a version change:

  1. OpenMPI/1.8.3 => OpenMPI/1.10.0

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
epw.x 0000000000E261D1 Unknown Unknown Unknown
epw.x 0000000000E24927 Unknown Unknown Unknown
epw.x 0000000000DC46B4 Unknown Unknown Unknown
epw.x 0000000000DC44C6 Unknown Unknown Unknown
epw.x 0000000000D57D6F Unknown Unknown Unknown
epw.x 0000000000D5EF9D Unknown Unknown Unknown
libpthread.so.0 00002AC950C92710 Unknown Unknown Unknown
epw.x 000000000096DFF7 Unknown Unknown Unknown
epw.x 00000000004631AD Unknown Unknown Unknown
epw.x 0000000000451C44 Unknown Unknown Unknown
epw.x 0000000000412A49 Unknown Unknown Unknown
epw.x 0000000000411CBE Unknown Unknown Unknown
libc.so.6 00002AC950EBED5D Unknown Unknown Unknown
epw.x 0000000000411BC9 Unknown Unknown Unknown
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
epw.x 0000000000E261D1 Unknown Unknown Unknown
epw.x 0000000000E24927 Unknown Unknown Unknown
epw.x 0000000000DC46B4 Unknown Unknown Unknown
epw.x 0000000000DC44C6 Unknown Unknown Unknown
epw.x 0000000000D57D6F Unknown Unknown Unknown
epw.x 0000000000D5EF9D Unknown Unknown Unknown
libpthread.so.0 00002B2F41FA8710 Unknown Unknown Unknown
epw.x 000000000096DFF7 Unknown Unknown Unknown
epw.x 00000000004631AD Unknown Unknown Unknown
epw.x 0000000000451C44 Unknown Unknown Unknown
epw.x 0000000000412A49 Unknown Unknown Unknown
epw.x 0000000000411CBE Unknown Unknown Unknown
libc.so.6 00002B2F421D4D5D Unknown Unknown Unknown
epw.x 0000000000411BC9 Unknown Unknown Unknown

Nothing else is printed. Anything that I should try?

Regards,

Nandan.

Hello,

Not that it should be a problem, I notice that your fsthick = 1.d10 is very large.

Does the problem appears with small grids? If it works, it could a memory issue.

What I usually do in that case is to do an interactive job.

You can then launch the calculation interactively and monitor the memory usage with "top".

The crash should be right at the beginning so its easy to reproduce.

Best,
Samuel

Thanks for the reply. I got busy with other things and have not had time to look back at this.
I will try this out soon.

Regards,

Nandan.