Forráskód Böngészése

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 10 éve
szülő
commit
dac3f5d5d6
1 módosított fájl, 1 hozzáadás és 1 törlés
  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);