|
@@ -1,7 +1,7 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
* Copyright (C) 2010-2016 Université de Bordeaux
|
|
|
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 CNRS
|
|
|
+ * Copyright (C) 2010, 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
|
|
@@ -352,6 +352,7 @@ static __starpu_inline int starpu_get_env_number(const char *str)
|
|
|
}
|
|
|
|
|
|
/* fprintf(stderr, "ENV %s WAS %d\n", str, val); */
|
|
|
+ STARPU_ASSERT_MSG(val >= 0, "The value for the environment variable '%s' cannot be negative", str);
|
|
|
return (int)val;
|
|
|
}
|
|
|
else
|