Explorar el Código

- pthread_setaffinity_np does not set errno

Olivier Aumage hace 8 años
padre
commit
2b51f898a3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/core/topology.c

+ 2 - 1
src/core/topology.c

@@ -1358,7 +1358,8 @@ _starpu_bind_thread_on_cpu (
 	ret = pthread_setaffinity_np(self, sizeof(aff_mask), &aff_mask);
 	if (ret)
 	{
-		perror("binding thread");
+		const char *msg = strerror(ret);
+		fprintf(stderr, "pthread_setaffinity_np: %s\n", msg);
 		STARPU_ABORT();
 	}