Browse Source

- pthread_setaffinity_np does not set errno

Olivier Aumage 8 years ago
parent
commit
2b51f898a3
1 changed files with 2 additions and 1 deletions
  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();
 	}