Bladeren bron

Prefixing of src/core/topology.h

find . -type f -not -name "*svn*"|xargs sed -i s/"\bstarpu_build_topology\b"/_starpu_build_topology/g
find . -type f -not -name "*svn*"|xargs sed -i s/"\bstarpu_destroy_topology\b"/_starpu_destroy_topology/g
Nathalie Furmento 15 jaren geleden
bovenliggende
commit
46146255f9
3 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 2 2
      src/core/topology.c
  2. 2 2
      src/core/topology.h
  3. 2 2
      src/core/workers.c

+ 2 - 2
src/core/topology.c

@@ -523,7 +523,7 @@ static void _starpu_init_workers_binding(struct starpu_machine_config_s *config)
 }
 
 
-int starpu_build_topology(struct starpu_machine_config_s *config)
+int _starpu_build_topology(struct starpu_machine_config_s *config)
 {
 	int ret;
 
@@ -541,7 +541,7 @@ int starpu_build_topology(struct starpu_machine_config_s *config)
 	return 0;
 }
 
-void starpu_destroy_topology(struct starpu_machine_config_s *config __attribute__ ((unused)))
+void _starpu_destroy_topology(struct starpu_machine_config_s *config __attribute__ ((unused)))
 {
 	/* cleanup StarPU internal data structures */
 	_starpu_deinit_memory_nodes();

+ 2 - 2
src/core/topology.h

@@ -62,9 +62,9 @@ struct starpu_topo_obj_t {
 	struct starpu_worker_s *worker; /* (ignored if !is_a_worker) */
 };
 
-int starpu_build_topology(struct starpu_machine_config_s *config);
+int _starpu_build_topology(struct starpu_machine_config_s *config);
 
-void starpu_destroy_topology(struct starpu_machine_config_s *config);
+void _starpu_destroy_topology(struct starpu_machine_config_s *config);
 
 /* returns the number of physical cpus */
 unsigned _starpu_topology_get_nhwcpu(struct starpu_machine_config_s *config);

+ 2 - 2
src/core/workers.c

@@ -237,7 +237,7 @@ int starpu_init(struct starpu_conf *user_conf)
 	 * initialization */
 	config.user_conf = user_conf;
 
-	ret = starpu_build_topology(&config);
+	ret = _starpu_build_topology(&config);
 	if (ret)
 		return ret;
 
@@ -447,7 +447,7 @@ void starpu_shutdown(void)
 
 	deinit_sched_policy(&config);
 
-	starpu_destroy_topology(&config);
+	_starpu_destroy_topology(&config);
 
 #ifdef STARPU_USE_FXT
 	stop_fxt_profiling();