Przeglądaj źródła

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 lat temu
rodzic
commit
dac3f5d5d6
1 zmienionych plików z 1 dodań i 1 usunięć
  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);