Преглед на файлове

src/drivers: do not call pthread_exit() at the end of the drivers; just return NULL.

This is better if we ever want to run the driver loop in a thread that belongs to the application.
Cyril Roelandt преди 13 години
родител
ревизия
d97cab7cc4
променени са 4 файла, в които са добавени 1 реда и са изтрити 7 реда
  1. 0 1
      src/drivers/cpu/driver_cpu.c
  2. 0 3
      src/drivers/cuda/driver_cuda.c
  3. 1 1
      src/drivers/gordon/driver_gordon.c
  4. 0 2
      src/drivers/opencl/driver_opencl.c

+ 0 - 1
src/drivers/cpu/driver_cpu.c

@@ -238,6 +238,5 @@ void *_starpu_cpu_worker(void *arg)
 
 	_STARPU_TRACE_WORKER_DEINIT_END(_STARPU_FUT_CPU_KEY);
 
-	pthread_exit(NULL);
 	return NULL;
 }

+ 0 - 3
src/drivers/cuda/driver_cuda.c

@@ -376,10 +376,7 @@ void *_starpu_cuda_worker(void *arg)
 
 	_STARPU_TRACE_WORKER_DEINIT_END(_STARPU_FUT_CUDA_KEY);
 
-	pthread_exit(NULL);
-
 	return NULL;
-
 }
 
 void starpu_cublas_report_error(const char *func, const char *file, int line, cublasStatus status)

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

@@ -488,5 +488,5 @@ void *_starpu_gordon_worker(void *arg)
 	gordon_deinit();
 	_STARPU_DEBUG("gordon was deinited\n");
 
-	pthread_exit((void *)0x42);
+	return NULL;
 }

+ 0 - 2
src/drivers/opencl/driver_opencl.c

@@ -509,8 +509,6 @@ void *_starpu_opencl_worker(void *arg)
 
         _starpu_opencl_deinit_context(devid);
 
-	pthread_exit(NULL);
-
 	return NULL;
 }