Browse Source

openmp: fix parsing of OMP_SCHEDULE envvar

The first mode should be 'undefined' instead of 'static' because
that list of strings have to be sorted accordingly to the enumeration.
Samuel Pitoiset 9 years ago
parent
commit
dac3f5d5d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/util/openmp_runtime_support_environment.c

+ 1 - 1
src/util/openmp_runtime_support_environment.c

@@ -205,7 +205,7 @@ static void read_sched_var(const char *var, int *dest, unsigned long long *dest_
 			free(str);
 			return;
 		}
-		static const char *strings[] = { "static", "dynamic", "guided", "auto", NULL };
+		static const char *strings[] = { "undefined", "static", "dynamic", "guided", "auto", NULL };
 		int mode = strings_cmp(strings, str);
 		if (mode < 0)
 			_STARPU_ERROR("parse error in variable %s\n", var);