浏览代码

omp: remove unnecessary omp_starpu_conf global var

Samuel Pitoiset 9 年之前
父节点
当前提交
8f68c6555b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/util/openmp_runtime_support.c

+ 1 - 1
src/util/openmp_runtime_support.c

@@ -38,7 +38,6 @@
 static struct starpu_omp_global _global_state;
 static starpu_pthread_key_t omp_thread_key;
 static starpu_pthread_key_t omp_task_key;
-static struct starpu_conf omp_starpu_conf;
 
 struct starpu_omp_global *_starpu_omp_global_state = NULL;
 double _starpu_omp_clock_ref = 0.0; /* clock reference for starpu_omp_get_wtick */
@@ -723,6 +722,7 @@ static void omp_initial_thread_setup(void)
 	 * we configure starpu to not launch CPU worker 0
 	 * because we will use the main thread to play the role of worker 0
 	 */
+	struct starpu_conf omp_starpu_conf;
 	int ret = starpu_conf_init(&omp_starpu_conf);
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_conf_init");
 	initial_thread->starpu_driver.type = STARPU_CPU_WORKER;