Will try this within a day or two. At the moment I am simply using a retry loop on ENOSYS and usually no more than one retry is needed.
You are probably correct. I was thinking of this code from https://svn.open-mpi.org/trac/hwloc/browser/trunk/src/topology-linux.c:
445 while ((dirent = readdir(taskdir)) != NULL) {
"taskdir" here is /proc/<pid>/task, correct? In which case the threads will be doing readdir() on the same DIR stream...
<fix_tids.patch>_______________________________________________
Thanks
Brice
hwloc-users mailing list
hwloc-users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-usersIf the patch doesn't help, can you send your code to help debug things?
_______________________________________________ hwloc-users mailing list hwloc-users@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users