Browse Source

Prefix notify_data_modification and make it available to the applications.

Cédric Augonnet 16 years ago
parent
commit
e6f5366b65
3 changed files with 2 additions and 3 deletions
  1. 1 0
      include/starpu-data.h
  2. 1 1
      src/datawizard/coherency.c
  3. 0 2
      src/datawizard/coherency.h

+ 1 - 0
include/starpu-data.h

@@ -41,6 +41,7 @@ void starpu_delete_data(struct starpu_data_state_t *state);
 void starpu_advise_if_data_is_important(struct starpu_data_state_t *state, unsigned is_important);
 
 void starpu_sync_data_with_mem(struct starpu_data_state_t *state);
+void starpu_notify_data_modification(data_state *state, uint32_t modifying_node);
 
 void starpu_malloc_pinned_if_possible(float **A, size_t dim);
 

+ 1 - 1
src/datawizard/coherency.c

@@ -405,7 +405,7 @@ static inline void _notify_data_modification_continuation(void *arg)
 #endif
 
 /* in case the application did modify the data ... invalidate all other copies  */
-void notify_data_modification(data_state *state, uint32_t modifying_node)
+void starpu_notify_data_modification(data_state *state, uint32_t modifying_node)
 {
 	/* this may block .. XXX */
 #ifdef NO_DATA_RW_LOCK

+ 0 - 2
src/datawizard/coherency.h

@@ -148,8 +148,6 @@ void push_codelet_output(starpu_buffer_descr *descrs, unsigned nbuffers, uint32_
 __attribute__((warn_unused_result))
 int fetch_codelet_input(starpu_buffer_descr *descrs, starpu_data_interface_t *interface, unsigned nbuffers, uint32_t mask);
 
-void notify_data_modification(data_state *state, uint32_t modifying_node);
-
 int request_data_allocation(data_state *state, uint32_t node);
 
 unsigned is_data_present_or_requested(data_state *state, uint32_t node);