Procházet zdrojové kódy

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 před 10 roky
rodič
revize
dac3f5d5d6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);