[hwloc-users] How to get pid in hwloc?

2018-09-04 Thread Junchao Zhang
Hi, hwloc_set_proc_cpubind() has a pid argument. But how to get the pid portably? In addition, I want to convert a pid to an integer and then print it out. Does hwloc has APIs to support the needs? Thank you. --Junchao Zhang ___ hwloc-users mailing

[hwloc-users] conflicts of multiple hwloc libraries

2018-09-01 Thread Junchao Zhang
a "multiple definition of `hwloc_linux_component'" error when linking my code. How to fix that? Thank you. --Junchao Zhang ___ hwloc-users mailing list hwloc-users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/hwloc-users

[hwloc-users] Question about hwloc_bitmap_singlify

2018-08-28 Thread Junchao Zhang
lify, what will happen? Suppose a process's old cpu binding is oldset, and I want to bind it to newset. What should I do to use hwloc_bitmap_singlify? Thank you. --Junchao Zhang ___ hwloc-users mailing list hwloc-users@lists.open-mpi.org https://lists.op

[hwloc-users] How to combine bitmaps on MPI ranks?

2018-08-28 Thread Junchao Zhang
Hello, Suppose I call hwloc on two MPI ranks and get a bitmap on each. On rank 0, I want to bitwise OR the two. How to do that? I did not find bitmap APIs to pack/unpack bitmaps to/from ulongs for MPI send/recv purpose. Thank you. --Junchao Zhang