[QE-users] using mpirun -np with pwtk script
marekgocnik
marekgocnik at azet.sk
Wed Mar 22 14:21:22 CET 2023
I added the prefix to the source file, worked like a charm.
Thank you, have a nice day
> ** Wed, 22 Mar 2023 14:01:00 +0100 - users at lists.quantum-espresso.org **
>
> On Wed, 2023-03-22 at 13:45 +0100, Matic wrote:
> > Hi,
> >
> > you can add:
> >
> > prefix "mpirun -np X"
> >
> > to your pwtk script (where X is the number of processors);
> > this can also be specified in your local ~/.pwtk/pwtk.tcl file so
> > that you don't have to add it to every script when running on a
> > particular machine
>
> In addition, the specification can be made "automatic" by adding the
> following snippet to ~/.pwtk/pwtk.tcl
>
>
> # get the number of available processors
> set np [exec nproc]
> while { [catch {exec mpirun -n $np echo yes}] } {
> set np [expr { $np > 2 ? $np / 2 : 1 }]
> }
> prefix mpirun -n $np
>
>
> This will automatically determine the number of cores on your computer
> and use them for running QE executables.
>
> Regards, Tone
> --
> Jožef Stefan Institute, Ljubljana, Slovenia
>
>
>
>
> _______________________________________________
> 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 users at lists.quantum-espresso.org
> https://lists.quantum-espresso.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20230322/927e4fa2/attachment.html>
More information about the users
mailing list