Browse Source

fix signature for starpu_sched_ctx_exec_parallel_code and mention it in ChangeLog for 1.2.0

Nathalie Furmento 12 years ago
parent
commit
32073b9ad8
3 changed files with 4 additions and 2 deletions
  1. 2 0
      ChangeLog
  2. 1 1
      include/starpu_sched_ctx.h
  3. 1 1
      src/core/sched_ctx.c

+ 2 - 0
ChangeLog

@@ -18,6 +18,8 @@ StarPU 1.2.0 (svn revision xxxx)
 ==============================================
 
 New features:
+  * New function starpu_sched_ctx_exec_parallel_code to execute a
+    parallel code on the workers of the given scheduler context
   * MPI:
         - New internal communication system : a unique tag called
 	  is now used for all communications, and a system

+ 1 - 1
include/starpu_sched_ctx.h

@@ -182,7 +182,7 @@ int starpu_sched_ctx_set_max_priority(unsigned sched_ctx_id, int max_prio);
 #define STARPU_DEFAULT_PRIO	0
 
 /* execute any parallel code on the workers of the sched_ctx (workers are blocked) */
-void* starpu_sched_ctx_exec_parallel_code(void* (*func)(void* param), void* param, unsigned sched_ctx_id);
+void* starpu_sched_ctx_exec_parallel_code(void* (*func)(void*), void* param, unsigned sched_ctx_id);
 
 #ifdef __cplusplus
 }

+ 1 - 1
src/core/sched_ctx.c

@@ -1283,7 +1283,7 @@ static void _starpu_sched_ctx_wake_up_workers(unsigned sched_ctx_id)
 	return;
 }
 
-void* starpu_sched_ctx_exec_parallel_code(void* (*func)(void* param), void* param, unsigned sched_ctx_id)
+void* starpu_sched_ctx_exec_parallel_code(void* (*func)(void*), void* param, unsigned sched_ctx_id)
 {
 	/* get starpu workers to sleep */
 	_starpu_sched_ctx_get_workers_to_sleep(sched_ctx_id);