Browse Source

Warn the user when the scheduling policy was not found

Samuel Thibault 14 years ago
parent
commit
8e988c8180
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/core/sched_policy.c

+ 3 - 2
src/core/sched_policy.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux 1
- * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010-2011  Université de Bordeaux 1
+ * Copyright (C) 2010-2011  Centre National de la Recherche Scientifique
  *
  * 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
@@ -119,6 +119,7 @@ static struct starpu_sched_policy_s *find_sched_policy_from_name(const char *pol
 			}
 		}
 	}
+	fprintf(stderr, "Warning: scheduling policy \"%s\" was not found, try \"help\" to get a list\n", policy_name);
 
 	/* nothing was found */
 	return NULL;