|
@@ -1,7 +1,7 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
* Copyright (C) 2011, 2013, 2015 Université Bordeaux
|
|
|
- * Copyright (C) 2011, 2012, 2013, 2014, 2015 CNRS
|
|
|
+ * Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016 CNRS
|
|
|
*
|
|
|
* StarPU is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -100,6 +100,14 @@ int main(int argc, char **argv)
|
|
|
starpu_mpi_comm_rank(MPI_COMM_WORLD, &my_rank);
|
|
|
starpu_mpi_comm_size(MPI_COMM_WORLD, &size);
|
|
|
|
|
|
+ if (starpu_cpu_worker_get_count() == 0)
|
|
|
+ {
|
|
|
+ FPRINTF(stderr, "We need at least 1 CPU worker.\n");
|
|
|
+ starpu_mpi_shutdown();
|
|
|
+ starpu_shutdown();
|
|
|
+ return 77;
|
|
|
+ }
|
|
|
+
|
|
|
parse_args(argc, argv);
|
|
|
|
|
|
/* Initial data values */
|