소스 검색

Rename starpu_run_driver to starpu_driver_run for the sake of consistency.

Cyril Roelandt 13 년 전
부모
커밋
9abd6ebfb0
4개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      doc/chapters/advanced-examples.texi
  2. 1 1
      examples/gl_interop/gl_interop.c
  3. 2 2
      include/starpu.h
  4. 1 1
      src/core/workers.c

+ 1 - 1
doc/chapters/advanced-examples.texi

@@ -932,7 +932,7 @@ be enabled by using the @code{cuda_opengl_interoperability} field of the
 @code{starpu_conf} structure, and the driver loop has to be run by
 the application, by using the @code{not_launched_drivers} field of
 @code{starpu_conf} to prevent StarPU from running it in a separate thread, and
-by using @code{starpu_run_driver} to run the loop. The @code{gl_interop} example
+by using @code{starpu_driver_run} to run the loop. The @code{gl_interop} example
 shows how it articulates in a simple case, where rendering is done in task
 callbacks. TODO: provide glutIdleFunc alternative.
 

+ 1 - 1
examples/gl_interop/gl_interop.c

@@ -120,7 +120,7 @@ int main(int argc, char **argv)
 
 	/* And run the driver, which will run the task */
 	printf("running the driver\n");
-	starpu_run_driver(&drivers[0]);
+	starpu_driver_run(&drivers[0]);
 	printf("finished running the driver\n");
 
 	starpu_shutdown();

+ 2 - 2
include/starpu.h

@@ -77,7 +77,7 @@ struct starpu_driver
 		 * 1) Add a member to this union.
 		 * 2) Edit _starpu_launch_drivers() to make sure the driver is
 		 *    not always launched.
-		 * 3) Edit starpu_run_driver() so that it can handle another
+		 * 3) Edit starpu_driver_run() so that it can handle another
 		 *    kind of architecture.
 		 * 4) Write _starpu_run_foobar() in the corresponding driver.
 		 * 5) Test the whole thing :)
@@ -201,7 +201,7 @@ void starpu_worker_get_name(int id, char *dst, size_t maxlen);
  */
 int starpu_worker_get_devid(int id);
 
-int starpu_run_driver(struct starpu_driver *);
+int starpu_driver_run(struct starpu_driver *);
 void starpu_set_end_of_submissions(void);
 
 int starpu_driver_init(struct starpu_driver *d);

+ 1 - 1
src/core/workers.c

@@ -978,7 +978,7 @@ extern int _starpu_run_opencl(struct starpu_driver *);
 #endif
 
 int
-starpu_run_driver(struct starpu_driver *d)
+starpu_driver_run(struct starpu_driver *d)
 {
 	if (!d)
 		return -EINVAL;