Replaced gmx_hostname_num by gmx_physicalnode_id_hash
[alexxy/gromacs.git] / src / gromacs / gmxlib / gmx_thread_affinity.c
index 9752fb0295c6c4066b9b8cb8c6ee6111c98fba28..03bf0db93f384d55a11d29e7bdfc8648b3618356 100644 (file)
@@ -236,7 +236,8 @@ gmx_set_thread_affinity(FILE                *fplog,
          */
         MPI_Comm comm_intra;
 
-        MPI_Comm_split(MPI_COMM_WORLD, gmx_hostname_num(), cr->rank_intranode,
+        MPI_Comm_split(MPI_COMM_WORLD,
+                       gmx_physicalnode_id_hash(), cr->rank_intranode,
                        &comm_intra);
         MPI_Scan(&nthread_local, &thread0_id_node, 1, MPI_INT, MPI_SUM, comm_intra);
         /* MPI_Scan is inclusive, but here we need exclusive */