Browse Source

fix build without hwloc

Samuel Thibault 6 years ago
parent
commit
465fe80e35
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/core/topology.c

+ 4 - 4
src/core/topology.c

@@ -2050,7 +2050,7 @@ _starpu_bind_thread_on_cpu (
 	}
 	}
 
 
 #elif defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(__linux__)
 #elif defined(HAVE_PTHREAD_SETAFFINITY_NP) && defined(__linux__)
-	int ret;
+	int res;
 	/* fix the thread on the correct cpu */
 	/* fix the thread on the correct cpu */
 	cpu_set_t aff_mask;
 	cpu_set_t aff_mask;
 	CPU_ZERO(&aff_mask);
 	CPU_ZERO(&aff_mask);
@@ -2058,10 +2058,10 @@ _starpu_bind_thread_on_cpu (
 
 
 	starpu_pthread_t self = starpu_pthread_self();
 	starpu_pthread_t self = starpu_pthread_self();
 
 
-	ret = pthread_setaffinity_np(self, sizeof(aff_mask), &aff_mask);
+	res = pthread_setaffinity_np(self, sizeof(aff_mask), &aff_mask);
-	if (ret)
+	if (res)
 	{
 	{
-		const char *msg = strerror(ret);
+		const char *msg = strerror(res);
 		_STARPU_MSG("pthread_setaffinity_np: %s\n", msg);
 		_STARPU_MSG("pthread_setaffinity_np: %s\n", msg);
 		STARPU_ABORT();
 		STARPU_ABORT();
 	}
 	}