Selaa lähdekoodia

Prefixing of src/core/dependencies/data-concurrency.h

find . -type f -not -name "*svn*"|xargs sed -i s/"\bnotify_data_dependencies\b"/_starpu_notify_data_dependencies/g
find . -type f -not -name "*svn*"|xargs sed -i s/"\battempt_to_submit_data_request_from_apps\b"/_starpu_attempt_to_submit_data_request_from_apps/g
Nathalie Furmento 15 vuotta sitten
vanhempi
commit
7478445b24

+ 2 - 2
src/core/dependencies/data-concurrency.c

@@ -61,7 +61,7 @@ static unsigned may_unlock_data_req_list_head(starpu_data_handle handle)
 }
 
 
-unsigned attempt_to_submit_data_request_from_apps(starpu_data_handle handle, starpu_access_mode mode,
+unsigned _starpu_attempt_to_submit_data_request_from_apps(starpu_data_handle handle, starpu_access_mode mode,
 						void (*callback)(void *), void *argcb)
 {
 	unsigned ret;
@@ -192,7 +192,7 @@ unsigned _starpu_submit_job_enforce_data_deps(starpu_job_t j)
 
 
 /* The header lock must already be taken by the caller */
-void notify_data_dependencies(starpu_data_handle handle)
+void _starpu_notify_data_dependencies(starpu_data_handle handle)
 {
 	handle->refcnt--;
 

+ 2 - 2
src/core/dependencies/data-concurrency.h

@@ -21,9 +21,9 @@
 
 unsigned _starpu_submit_job_enforce_data_deps(starpu_job_t j);
 
-void notify_data_dependencies(starpu_data_handle handle);
+void _starpu_notify_data_dependencies(starpu_data_handle handle);
 
-unsigned attempt_to_submit_data_request_from_apps(starpu_data_handle handle,
+unsigned _starpu_attempt_to_submit_data_request_from_apps(starpu_data_handle handle,
 		starpu_access_mode mode,
 		void (*callback)(void *), void *argcb);
 

+ 1 - 1
src/datawizard/coherency.c

@@ -312,7 +312,7 @@ void _starpu_release_data_on_node(starpu_data_handle handle, uint32_t default_wb
 
 	handle->per_node[memory_node].refcnt--;
 
-	notify_data_dependencies(handle);
+	_starpu_notify_data_dependencies(handle);
 
 	starpu_spin_unlock(&handle->header_lock);
 }

+ 5 - 5
src/datawizard/user_interactions.c

@@ -106,7 +106,7 @@ int starpu_sync_data_with_mem(starpu_data_handle handle, starpu_access_mode mode
 	/* we try to get the data, if we do not succeed immediately, we set a
  	* callback function that will be executed automatically when the data is
  	* available again, otherwise we fetch the data directly */
-	if (!attempt_to_submit_data_request_from_apps(handle, mode,
+	if (!_starpu_attempt_to_submit_data_request_from_apps(handle, mode,
 			_starpu_sync_data_with_mem_continuation, &statenode))
 	{
 		/* no one has locked this data yet, so we proceed immediately */
@@ -143,7 +143,7 @@ int starpu_sync_data_with_mem_non_blocking(starpu_data_handle handle,
 	/* we try to get the data, if we do not succeed immediately, we set a
  	* callback function that will be executed automatically when the data is
  	* available again, otherwise we fetch the data directly */
-	if (!attempt_to_submit_data_request_from_apps(handle, mode,
+	if (!_starpu_attempt_to_submit_data_request_from_apps(handle, mode,
 			_starpu_sync_data_with_mem_continuation, statenode))
 	{
 		/* no one has locked this data yet, so we proceed immediately */
@@ -179,7 +179,7 @@ static void _prefetch_data_on_node(void *arg)
 	if (!statenode->async)
 	{
 		starpu_spin_lock(&statenode->state->header_lock);
-		notify_data_dependencies(statenode->state);
+		_starpu_notify_data_dependencies(statenode->state);
 		starpu_spin_unlock(&statenode->state->header_lock);
 	}
 
@@ -203,7 +203,7 @@ int _starpu_prefetch_data_on_node_with_mode(starpu_data_handle handle, unsigned
 		.finished = 0
 	};
 
-	if (!attempt_to_submit_data_request_from_apps(handle, mode, _prefetch_data_on_node, &statenode))
+	if (!_starpu_attempt_to_submit_data_request_from_apps(handle, mode, _prefetch_data_on_node, &statenode))
 	{
 		/* we can immediately proceed */
 		uint8_t read = (mode != STARPU_W);
@@ -214,7 +214,7 @@ int _starpu_prefetch_data_on_node_with_mode(starpu_data_handle handle, unsigned
 		if (!async)
 		{
 			starpu_spin_lock(&handle->header_lock);
-			notify_data_dependencies(handle);
+			_starpu_notify_data_dependencies(handle);
 			starpu_spin_unlock(&handle->header_lock);
 		}
 	}