Explorar o código

Prefixing ...

find . -type f -not -name "*svn*"|xargs sed -i s/"\bget_cuda_device_count\b"/starpu_get_cuda_device_count/g
find . -type f -not -name "*svn*"|xargs sed -i s/"\bgordon_worker\b"/starpu_gordon_worker/g
Nathalie Furmento %!s(int64=15) %!d(string=hai) anos
pai
achega
78b0247b46

+ 1 - 1
src/core/topology.c

@@ -193,7 +193,7 @@ static int _starpu_init_machine_config(struct machine_config_s *config,
 
 		if (explicitval < 0) {
 			config->ncudagpus =
-				STARPU_MIN(get_cuda_device_count(), STARPU_MAXCUDADEVS);
+				STARPU_MIN(starpu_get_cuda_device_count(), STARPU_MAXCUDADEVS);
 		} else {
 			/* use the specified value */
 			config->ncudagpus = (unsigned)explicitval;

+ 1 - 1
src/core/workers.c

@@ -155,7 +155,7 @@ static void _starpu_init_workers(struct machine_config_s *config)
 					gordon_worker_set.set_is_initialized = 0;
 
 					pthread_create(&gordon_worker_set.worker_thread, NULL, 
-							gordon_worker, &gordon_worker_set);
+							starpu_gordon_worker, &gordon_worker_set);
 
 					pthread_mutex_lock(&gordon_worker_set.mutex);
 					if (!gordon_worker_set.set_is_initialized)

+ 2 - 2
src/drivers/cuda/driver_cuda.c

@@ -59,7 +59,7 @@ static void deinit_context(int workerid)
 		STARPU_CUDA_REPORT_ERROR(cures);
 }
 
-unsigned get_cuda_device_count(void)
+unsigned starpu_get_cuda_device_count(void)
 {
 	int cnt;
 
@@ -73,7 +73,7 @@ unsigned get_cuda_device_count(void)
 
 void _starpu_init_cuda(void)
 {
-	ncudagpus = get_cuda_device_count();
+	ncudagpus = starpu_get_cuda_device_count();
 	assert(ncudagpus <= STARPU_MAXCUDADEVS);
 }
 

+ 1 - 1
src/drivers/cuda/driver_cuda.h

@@ -36,7 +36,7 @@
 
 #include <common/fxt.h>
 
-unsigned get_cuda_device_count(void);
+unsigned starpu_get_cuda_device_count(void);
 
 #ifdef STARPU_USE_CUDA
 void _starpu_init_cuda(void);

+ 1 - 1
src/drivers/gordon/driver_gordon.c

@@ -408,7 +408,7 @@ void *gordon_worker_inject(struct worker_set_s *arg)
 	return NULL;
 }
 
-void *gordon_worker(void *arg)
+void *starpu_gordon_worker(void *arg)
 {
 	struct worker_set_s *gordon_set_arg = arg;
 

+ 1 - 1
src/drivers/gordon/driver_gordon.h

@@ -39,6 +39,6 @@
 
 #define NMAXGORDONSPUS	8
 
-void *gordon_worker(void *);
+void *starpu_gordon_worker(void *);
 
 #endif // __DRIVER_GORDON_H__