Hi,

I was somewhat surprised to notice that hwloc-bind doesn't
execute the command if the --get option is used. This could
come in handy to check the binding set by other programs,
e.g. SLURM, mpirun or taskset. The following patch would
change this.

--- hwloc-1.9/utils/hwloc-bind.c        2014-03-17 16:42:36.000000000 +0100
+++ hwloc-1.9/utils/hwloc-bind.c.getproc        2014-08-13 10:24:17.832682576 
+0200
@@ -301,7 +301,9 @@
     else
       printf("%s\n", s);
     free(s);
-    return EXIT_SUCCESS;
+    if (get_last_cpu_location) {
+      return EXIT_SUCCESS;
+    }
   }

   if (got_membind) {

Please consider this change for the next release of hwloc.

With regards,
John


| John Donners | Senior adviseur | Operations, Support & Development | SURFsara 
| Science Park 140 | 1098 XG Amsterdam | Nederland |
T (31)6 19039023 | john.donn...@surfsara.nl | www.surfsara.nl |

Aanwezig op | ma | di | wo | do | vr

Reply via email to