Explorar o código

Fix test termination when there is no CPU worker

Samuel Thibault %!s(int64=11) %!d(string=hai) anos
pai
achega
3b59a224ac
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      tests/datawizard/commute2.c

+ 5 - 1
tests/datawizard/commute2.c

@@ -87,7 +87,11 @@ int main()
 		task->cl_arg = (void*)(uintptr_t)i;
 
 		ret = starpu_task_submit(task);
-		if (ret == -ENODEV) goto enodev;
+		if (ret == -ENODEV)
+		{
+			starpu_data_release(a_handle);
+			goto enodev;
+		}
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 	}