--==============d26340480031015718=MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hello everyone,
I would like to ask you, if it were possible to use mpirun -np for
parallel computation, while using pwtk script to run my calculations. On
pwtk webpage, it is stated that it should run in parallel mode, but only
one of my cores is being used.
Can anyone point my in some direciton
Thank you in advance.
PS:I have also attached a script
# load the pw.x input from file
load_fromPWI pwscf.in
# open a file for writing resulting total energies
set fid [open etot_vs_ecutwfc.dat w]
# loop over different "ecut" values
foreach ecut { 45 50 55 60 65 70 75 80 85 90 95 100 } {
  # name of I/O files: $name.in & $name.out
  set name TiB2_alpha_scf_ecutwfc-$ecut
  # set the pw.x "ecutwfc" variable
  SYSTEM "ecutwfc = $ecut"
  # run the pw.x calculation
  runPW $name.in
  # extract the "total energy" and write it to file
  set Etot [::pwtk::pwo::totene $name.out]
  puts $fid "$ecut $Etot"
}
close $fid
--==============d26340480031015718=MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<style type="text/css"></style>
<div
id="part_cffe38df97784186ab9c31ad50b0c94b"><div><div><p>Hello
everyone,<br/><br/>I would like to ask you, if it were possible to use mpirun
-np for parallel computation, while using pwtk script to run my calculations.
On pwtk webpage, it is stated that it should run in parallel mode, but only one
of my cores is being used.</p><p>Can anyone point my in some
direciton<br/><br/>Thank you in advance.<br/><br/>PS:I have also attached a
script<br/><br/># load the pw.x input from file<br/>load_fromPWI
pwscf.in<br/><br/># open a file for writing resulting total energies<br/>set
fid [open etot_vs_ecutwfc.dat w]<br/><br/># loop over different "ecut"
values<br/>foreach ecut { 45 50 55 60 65 70 75 80 85 90 95 100 } {<br/><br/>Â
 # name of I/O files: $name.in & $name.out<br/>  set name
TiB2_alpha_scf_ecutwfc-$ecut<br/><br/>Â Â # set the pw.x "ecutwfc"
variable<br/>Â Â SYSTEM "ecutwfc = $ecut"<br/><br/>Â Â # run the pw.x
calculation<br/>Â Â runPW $name.in<br/><br/>Â Â # extract the "total
energy" and write it to file<br/>Â Â set Etot [::pwtk::pwo::totene
$name.out]<br/>Â Â puts $fid "$ecut $Etot"<br/>}<br/><br/>close $fid<br/>Â
</p></div></div></div>
--==============d26340480031015718==--
_______________________________________________
The Quantum ESPRESSO community stands by the Ukrainian
people and expresses its concerns about the devastating
effects that the Russian military offensive has on their
country and on the free and peaceful scientific, cultural,
and economic cooperation amongst peoples
_______________________________________________
Quantum ESPRESSO is supported by MaX (www.max-centre.eu)
users mailing list [email protected]
https://lists.quantum-espresso.org/mailman/listinfo/users