error in MPI_FILE_OPEN

Hi,

I am trying to do a calculation with etf_mem = .false. When I do so, I get the following error:

 Error in routine ephwan2blochp (1):
 error in MPI_FILE_OPEN

This is an error while opening the prefix.epmatwp1 file.

Are there other strategies in lowering the memory consumption?

Thanks,
Alaska

The error seems to happen when the "outdir" is not the same as "./".

I was using "outdir = ./tmp/". When I reran epw.x after copying ./tmp/prefix.epmatwp1 to ./, the code ran successfully.

Best,
Alaska

Dear Alaska,

Happy to hear that you could solve you problem.

[code:zpot36k9]etf_mem[/code:zpot36k9] is indeed the way to reduce the RAM usage.

Best,

Samuel

Hi,
I have the same problem while running EPW.
Beside the temporary solution by Alaska, is there any better solution for this problem?
The system administration seems not really happy when I use outdir =‘./’ since it will affect other works.
I ran on only 1 node with 24cores and outdir=‘/tmp/’, after successfully write the epb files, prefix.epmatwp1 and prefix.epmatwe1 this problem occurred.
I appreciate any suggestions that you can give.

Best,
Duc-Long

Dear Duc-Long,

The issue of the ./ has been fixed and will be included in the next official release (september).

In the meantime, you can always create a different directory and run there with "./" without affecting other works.

The ‘./’ just mean it will write in the directory in which the input files are.

Best,

Samuel

Dear Dr. Samuel

I am having the same issue with error in opening epmatwp1 even though my input files are in the same way as your example files. I am doing electron linewidth calculation of Al. My wannier out put has created correctly, but epw.out stopped without any error message after 11th k point( I have 216 kpoints). But there is another file crated as epw.outerror. It has gone up to 216th k point and has written the below error at the end. This calculation has not created al.epmatwp1 file.

Writing epmatq on .epb files
Writing Hamiltonian, Dynamical matrix and EP vertex in Wann rep to file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error in routine diropn (115):
error opening ./al.epmatwp1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Thank you very much
Jaya

Dear Jaya,

There was indeed some bugs related to that. I’ve fixed some of them.

Could you try with the new version 4.1 of EPW that has been release today to see if you still have this issue?

Thank you,

Samuel

Dear Dr. Sponce

Thank you very much and I will try it

Jaya

Dear Dr. Samuel

As you said above, I tried my calculation with new EPW version. But the problem is still the same. I am doing Al structure and used conventional cell. It creates al.wout correctly and epw.out gives the below error.

Writing epmatq on .epb files (The .epb files have been correctly written)
Writing Hamiltonian, Dynamical matrix and EP vertex in Wann rep to file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error in routine diropn (115):
error opening ./al.epmatwp1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
stopping …

MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.

Please let me know how I can solve this.

Thank you
Jaya

Dear Jaya,

Could you provide your inputs files (scf/nscf/epw) ?

Thank you,

Samuel

Dear Dr. Samuel

I emailed you my scf/nscf and epw files.

Thank you

Jaya

I recently installed qe-6.0 on a Linux cluster using intel/16.0.1.150 and openmpi/1.8.1 (compiled with the same intel version). I got exactly the error reported on this thread. So I recompiled qe-6.0 and openmpi/1.8.1 with intel/14.0.2.144. The error is gone.

Cheers,
Vahid

Vahid Askarpour
Department of Physics and Atmospheric Science
Dalhousie University
Halifax, NS Canada

Dear Vahid,

Thank you for letting us know.

I recall that I saw a compiler bug in intel16. Usually, I wait until a few revisions (16.0.2 or something) before switching to a new compiler.

Best,

Samuel

Dear Samuel and Jaya,

The issue is observed with different no of procs from (scf,nscf) to epw calculations. I am curious to know how many maximum no of procs and nodes for high end calculations. For e.g My HPC contains 40 nodes, where each node with 48 cores and 68GB RAM memory. I am planning to run with nk (nq) with 16 16(1616) and nkf1(nqf1) with 6464(6464). How can I proceed for the calculations to avoid the memory issue?? Indeed I attempted several times (like 6, 12, 18 nodes with 256 cores) and struck with the same memory problem.

with regards
S. Appalakondaiah

Dear Samuel,
I have similar problem like Jaya. I tried to use the EPW v. 4.0 and 4.1.
I have outdir set to ‘./’.
My calculations create prefix.wout correctly but not create al.epmatwp1 file and epw.out gives the error:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error in routine diropn (115):
error opening ./prefix.epmatwp1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Please let me know how I can solve this problem.

Thank you in advance,
Artur

Dear Artur,

If you use EPW v4.1, it should be working. It was working for Jaya with 4.1.

However, I notice that you might have an issue with your prefix.

The prefix in EPW should be the same as in scf and nscf calculation. So you should have "al.wout" and not "prefix.wout" I think.

Best,

Samuel

Dear Samuel,
now a have the following situation with this same issue.
When I run the following calculations for phonons:
scf run for 16x16x16 K_POINTS; ph run for nq1=6, nq2=6, nq3=6
and the following calculations for EPW:
scf run for 8x8x8 K_POINTS; nscf run for 216 K_POINTS crystal; epw run for nk1=nk2=nk3=6, nq1=nq2=nq3=6, nqf1=nqf2=nqf3=24, nkf1=nkf2=nkf3=24, 16 cartesian

Everything is OK, I am getting good results.

But when I try increase the accuracy in the following way for phonons:
scf run for 16x16x16 K_POINTS; ph run for nq1=8, nq2=8, nq3=8
and for EPW calculations:
scf run for 8x8x8 K_POINTS; nscf run for 512 K_POINTS crystal; epw run for nk1=nk2=nk3=8, nq1=nq2=nq3=8, nqf1=nqf2=nqf3=64, nkf1=nkf2=nkf3=64, 29 cartesian

I getting the same error as the last:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
task # 0
from davcio : error # 115
error while writing from file "./prefix.epmatwp1"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Do you have any idea what I’m doing wrong?

Best Regards,
Artur

Dear Artur,

It’s likely due to a memory issue (not enough RAM).

Are you using the etf_mem = false ?

What is the size of your dvscf files on the 8x8x8 q-grid?

What is the max mem/cores that you have available on your cluster?

How many bands to you have in your system?

Best,

Samuel

Dear Samuel,
thank you for your response. But I think that it isn’t problem with memory. More than half of the RAM is not used during the epw calculations. On my cluster for the test calculations I have installed 64 GB of RAM.
I am not using the etf_mem = false.
The size of each dvscf file is 3.6 MiB.
During my calculations I use -np 10 and -npool 10.
I have 8 bands in my system.

Do you have any suggestion?

Best Regards,
Artur

Dear Artur,

Can you try again (restart from a fresh calculation in a new directory) with etf_mem = .false.
The way the file are created and read using MPI is different than with etf_mem = .true.
This could help you.
Also make sure to use version 4.1 of EPW.

Best,

Samuel