diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c
index 9ff2f7e9f5b36522746bb5f4aae1eb56d49900cb..86dc16905d5cffc319c2acac5cabb4b5c431979a 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 );
 }