Explorar el Código

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 hace 10 años
padre
commit
dac3f5d5d6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);