Identifying wokers and CPU sockets

Hi,

When working on a cluster, is there a way to know which worker belongs to which socket?
I am trying to send tasks to a group of workers belonging to the same socket.

Thanks a lot.

That depends on precisely what information you want to know. As far as I am aware, Julia processes are not bound to a particular core (or socket, if one node of the cluster has multiple sockets). I’m not sure how to figure out what core/socket a given process is currently running on.

If you just what to figure out which processes are running on which nodes, you could have each worker run gethostname() and send it to the master process (it sounds like you are using a master-slave communication model). The master process would then have to group the workers by the hostname, which should be easy enough.