From d7e7152b3489b401ffca3d163e03ba0c6f37cea6 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Fri, 19 May 2017 15:33:51 +0200
Subject: [PATCH] Fix number of worker with StarPU (Thanks Jerome)

---
 runtime/starpu/control/runtime_control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c
index 9ff2f7e9f..86dc16905 100644
--- a/runtime/starpu/control/runtime_control.c
+++ b/runtime/starpu/control/runtime_control.c
@@ -249,5 +249,5 @@ void RUNTIME_comm_size( int *size )
  **/
 int RUNTIME_get_thread_nbr()
 {
-    return starpu_worker_get_count_by_type( STARPU_CPU );
+    return starpu_worker_get_count_by_type( STARPU_CPU_WORKER );
 }
-- 
GitLab