You mean via an API of some kind? Not through an MPI call, but you can do it (though your code will wind up OMPI-specific). Look at the OMPI source code in opal/mca/paffinity/paffinity.h and you'll see the necessary calls as well as some macros to help parse the results.

Depending upon what version you are using, there may also be a function in opal/mca/paffinity/base/base.h to pretty-print that info for you. I believe it may only be in the developer's trunk right now, or it may have made it into the 1.5.0 release candidate....


On Thu, Sep 23, 2010 at 11:24 AM, Fernando Saez <saezfernando@gmail.com> wrote:
Hi all, I'm new in the list. I don't know if this post has been treated before.

My question is:

Is there a way in the OMPI library to report which process is running
on which core in a SMP system? I need to know processor affinity for optimizations issues.

Regards

Fernando Saez



_______________________________________________
users mailing list
users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users