Explorar o código

examples/filters/fplan_notautomatic.c: skip when no worker available

Nathalie Furmento %!s(int64=7) %!d(string=hai) anos
pai
achega
477363b5c1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      examples/filters/fplan_notautomatic.c

+ 2 - 0
examples/filters/fplan_notautomatic.c

@@ -135,6 +135,8 @@ int main(void)
 	starpu_data_handle_t sub_handles[PARTS];
 
 	ret = starpu_init(NULL);
+	if (ret == -ENODEV)
+		exit(77);
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
 	if (starpu_cpu_worker_get_count() == 0)