Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: [hwloc-devel] v0.9 branch
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-10-20 20:33:09

Brice -- do you need to move r1195 and r1196 to the v0.9 branch?

Also, r1198 didn't merge cleanly into v0.9 -- are there bugs fixed on
the trunk that didn't make it over to v0.9? An example is in topology-
linux.c; svn merge didn't find a corresponding section for the change,
but the section below it seems like it might have been replaced by the
conflicting section...?

<<<<<<< .working
   /* check whether a cgroup-cpuset is enabled */
   fd = hwloc_fopen("proc/self/cgroup", "r", fsroot_fd);
   if (fd) {
     /* find a cpuset line */
#define CGROUP_LINE_LEN 256
     char line[CGROUP_LINE_LEN];
     while (fgets(line, sizeof(line), fd)) {
       char *end, *colon = strchr(line, ':');
       if (!colon)
       if (strncmp(colon, ":cpuset:", 8))

       /* found a cgroup-cpuset line, return the name */
       end = strchr(colon, '\n');
       if (end)
         *end = '\0';
       hwloc_debug("Found cgroup-cpuset %s\n", colon+8);
       return strdup(colon+8);

>>>>>>> .merge-right.r1198
   /* check whether a cpuset is enabled */
   fd = hwloc_fopen(filename, "r", fsroot_fd);
   if (!fd)
     return 0;

   fgets(cpuset_name, sizeof(cpuset_name), fd);

Jeff Squyres