Browse Source

include: doc: minor fixes in function prototypes

Nathalie Furmento 12 years ago
parent
commit
97b9449927

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

@@ -153,7 +153,7 @@ future CRC computation. This is used for computing data size footprint.
 @node An example of data interface
 @subsection An example of data interface
 
-@deftypefun int starpu_data_interface_get_next_id ()
+@deftypefun int starpu_data_interface_get_next_id (void)
 Returns the next available id for a newly created data interface.
 @end deftypefun
 

+ 5 - 5
doc/chapters/basic-api.texi

@@ -204,17 +204,17 @@ application: statistics and other post-mortem debugging information are not
 guaranteed to be available until this method has been called.
 @end deftypefun
 
-@deftypefun int starpu_asynchronous_copy_disabled ()
+@deftypefun int starpu_asynchronous_copy_disabled (void)
 Return 1 if asynchronous data transfers between CPU and accelerators
 are disabled.
 @end deftypefun
 
-@deftypefun int starpu_asynchronous_cuda_copy_disabled ()
+@deftypefun int starpu_asynchronous_cuda_copy_disabled (void)
 Return 1 if asynchronous data transfers between CPU and CUDA accelerators
 are disabled.
 @end deftypefun
 
-@deftypefun int starpu_asynchronous_opencl_copy_disabled ()
+@deftypefun int starpu_asynchronous_opencl_copy_disabled (void)
 Return 1 if asynchronous data transfers between CPU and OpenCL accelerators
 are disabled.
 @end deftypefun
@@ -2107,7 +2107,7 @@ prints a list of all performance models on @var{output}.
 todo
 @end deftypefun
 
-@deftypefun int starpu_perfmodel_print_all ({struct starpu_perfmodel *}@var{model}, {char *}@var{arch}, @var{char *}parameter,  {uint32_t *}@var{footprint}, {FILE *}@var{output})
+@deftypefun int starpu_perfmodel_print_all ({struct starpu_perfmodel *}@var{model}, {char *}@var{arch}, @var{char *}parameter, {uint32_t *}@var{footprint}, {FILE *}@var{output})
 todo
 @end deftypefun
 
@@ -2501,7 +2501,7 @@ the directory where it has been located. Otherwise, they are both set
 to the empty string.
 @end deftypefun
 
-@deftypefun int starpu_opencl_compile_opencl_from_file ({const char *}@var{source_file_name}, {const char*} @var{build_options})
+@deftypefun int starpu_opencl_compile_opencl_from_file ({const char *}@var{source_file_name}, {const char *} @var{build_options})
 Compile the OpenCL kernel stored in the file @code{source_file_name}
 with the given options @code{build_options} and stores the result in
 the directory @code{$STARPU_HOME/.starpu/opencl} with the same

+ 1 - 1
include/starpu.h

@@ -161,7 +161,7 @@ int starpu_init(struct starpu_conf *conf) STARPU_WARN_UNUSED_RESULT;
 void starpu_shutdown(void);
 
 /* Print topology configuration */
-void starpu_topology_print(FILE *output);
+void starpu_topology_print(FILE *f);
 
 /* This function returns the number of workers (ie. processing units executing
  * StarPU tasks). The returned value should be at most STARPU_NMAXWORKERS. */

+ 1 - 1
include/starpu_opencl.h

@@ -61,7 +61,7 @@ void starpu_opencl_get_current_context(cl_context *context);
 void starpu_opencl_get_current_queue(cl_command_queue *queue);
 
 void starpu_opencl_load_program_source(const char *source_file_name, char *located_file_name, char *located_dir_name, char *opencl_program_source);
-int starpu_opencl_compile_opencl_from_file(const char *source_file_name, const char* build_options);
+int starpu_opencl_compile_opencl_from_file(const char *source_file_name, const char *build_options);
 int starpu_opencl_compile_opencl_from_string(const char *opencl_program_source, const char *file_name, const char* build_options);
 
 int starpu_opencl_load_binary_opencl(const char *kernel_id, struct starpu_opencl_program *opencl_programs);

+ 1 - 1
include/starpu_perfmodel.h

@@ -207,7 +207,7 @@ int starpu_perfmodel_list(FILE *output);
 void starpu_perfmodel_print(struct starpu_perfmodel *model, enum starpu_perf_archtype arch, unsigned nimpl, char *parameter, uint32_t *footprint, FILE *output);
 int starpu_perfmodel_print_all(struct starpu_perfmodel *model, char *arch, char *parameter, uint32_t *footprint, FILE *output);
 
-void starpu_perfmodel_update_history(struct starpu_perfmodel *model, struct starpu_task *, enum starpu_perf_archtype arch, unsigned cpuid, unsigned nimpl, double measured);
+void starpu_perfmodel_update_history(struct starpu_perfmodel *model, struct starpu_task *task, enum starpu_perf_archtype arch, unsigned cpuid, unsigned nimpl, double measured);
 
 void starpu_bus_print_bandwidth(FILE *f);
 void starpu_bus_print_affinity(FILE *f);