Browse Source

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

Nathalie Furmento 6 years ago
parent
commit
477363b5c1
1 changed files with 2 additions and 0 deletions
  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)