[Pw_forum] find thread and core number

Axel Kohlmeyer akohlmey at gmail.com
Thu Dec 10 23:40:16 CET 2015


On Thu, Dec 10, 2015 at 5:25 PM, mohammed shambakey
<shambakey1 at gmail.com> wrote:
> Hi
>
> when running pw.x on a multi-node cluster using OpenMP+MPI, is it possible
> to record each thread id, running on which core, in which node?

not without using special settings and special libraries. both MPI
ranks and OpenMP thread-ids are by default 100% hardware agnostic and
are assigned to individual cores based on the kernel scheduling
algorithms, thus those can change quite rapidly.
many MPI and OpenMP implementations allow to use OS-specific APIs to
assign "affinity" of an MPI rank or a thread to specific cores (or
rather provide an assignment pattern).

axel.

>
> Regards
>
> --
> Mohammed
>
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://pwscf.org/mailman/listinfo/pw_forum



-- 
Dr. Axel Kohlmeyer  akohlmey at gmail.com  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.



More information about the users mailing list