Browse Source

src/profiling/profiling.c: use named variable instead of hard-coded value

Nathalie Furmento 13 years ago
parent
commit
56da695b31
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/profiling/profiling.c

+ 2 - 2
src/profiling/profiling.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2012  Université de Bordeaux 1
- * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -104,7 +104,7 @@ void _starpu_profiling_init(void)
 		_starpu_worker_reset_profiling_info(worker);
 	}
 	if ((env = getenv("STARPU_PROFILING")) && atoi(env))
-		_starpu_profiling = 1;
+		_starpu_profiling = STARPU_PROFILING_ENABLE;
 }
 
 void _starpu_profiling_terminate(void)