Browse Source

register thread might also return 0 if the tid has already been declared

Lucas Schnorr 8 years ago
parent
commit
1167fb3a7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/debug/traces/starpu_fxt.c

+ 1 - 1
src/debug/traces/starpu_fxt.c

@@ -611,7 +611,7 @@ static void register_user_thread(double timestamp, unsigned long tid, const char
 static void register_mpi_thread(unsigned long tid)
 static void register_mpi_thread(unsigned long tid)
 {
 {
 	int ret = register_thread(tid, -2, 0);
 	int ret = register_thread(tid, -2, 0);
-	STARPU_ASSERT(ret == 1);
+	STARPU_ASSERT(ret == 1 || ret == 0);
 }
 }
 
 
 static int find_worker_id(unsigned long tid)
 static int find_worker_id(unsigned long tid)