Browse Source

socl: unset environment variables STARPU_NCPU and STARPU_NCUDA, it might be better to have a variable in starpu_conf to indicate to overwrite environment variables

Nathalie Furmento 8 years ago
parent
commit
3056cff4a8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      socl/src/init.c

+ 3 - 1
socl/src/init.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2012, 2016 University of Bordeaux
- * Copyright (C) 2012,2014,2016 CNRS
+ * Copyright (C) 2012,2014,2016,2017 CNRS
  * Copyright (C) 2012 Vincent Danjean <Vincent.Danjean@ens-lyon.org>
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -57,6 +57,8 @@ int socl_init_starpu(void) {
   STARPU_PTHREAD_MUTEX_UNLOCK(&_socl_mutex);
 
   starpu_conf_init(&conf);
+  unsetenv("STARPU_NCPU");
+  unsetenv("STARPU_NCUDA");
   conf.ncuda = 0;
   conf.ncpus = 0;