Explorar o código

Prefixing of src/datawizard/footprint.h

find . -type f -not -name "*svn*"|xargs sed -i s/"\bcompute_buffers_footprint\b"/starpu_compute_buffers_footprint/g
find . -type f -not -name "*svn*"|xargs sed -i s/"\bcompute_data_footprint\b"/starpu_compute_data_footprint/g
Nathalie Furmento %!s(int64=15) %!d(string=hai) anos
pai
achega
b90567f76c

+ 1 - 1
src/core/perfmodel/perfmodel_history.c

@@ -510,7 +510,7 @@ double history_based_job_expected_length(struct starpu_perfmodel_t *model, enum
 		load_history_based_model(model, 1);
 
 	if (STARPU_UNLIKELY(!j->footprint_is_computed))
-		compute_buffers_footprint(j);
+		starpu_compute_buffers_footprint(j);
 		
 	uint32_t key = j->footprint;
 

+ 2 - 2
src/datawizard/footprint.c

@@ -17,7 +17,7 @@
 #include <datawizard/footprint.h>
 #include <common/hash.h>
 
-void compute_buffers_footprint(starpu_job_t j)
+void starpu_compute_buffers_footprint(starpu_job_t j)
 {
 	uint32_t footprint = 0;
 	unsigned buffer;
@@ -40,7 +40,7 @@ void compute_buffers_footprint(starpu_job_t j)
 	j->footprint_is_computed = 1;
 }
 
-inline uint32_t compute_data_footprint(starpu_data_handle handle)
+inline uint32_t starpu_compute_data_footprint(starpu_data_handle handle)
 {
 	uint32_t interfaceid = (uint32_t)starpu_get_handle_interface_id(handle);
 

+ 2 - 2
src/datawizard/footprint.h

@@ -21,7 +21,7 @@
 
 struct starpu_job_s;
 
-void compute_buffers_footprint(struct starpu_job_s *j);
-inline uint32_t compute_data_footprint(starpu_data_handle handle);
+void starpu_compute_buffers_footprint(struct starpu_job_s *j);
+inline uint32_t starpu_compute_data_footprint(starpu_data_handle handle);
 
 #endif // __FOOTPRINT_H__

+ 2 - 2
src/datawizard/memalloc.c

@@ -426,7 +426,7 @@ static void register_mem_chunk(starpu_data_handle handle, uint32_t dst_node, siz
 
 	mc->data = handle;
 	mc->size = size;
-	mc->footprint = compute_data_footprint(handle);
+	mc->footprint = starpu_compute_data_footprint(handle);
 	mc->ops = handle->ops;
 	mc->data_was_deleted = 0;
 	mc->automatically_allocated = automatically_allocated;
@@ -552,7 +552,7 @@ int _starpu_allocate_memory_on_node(starpu_data_handle handle, uint32_t dst_node
 
 #ifdef STARPU_USE_ALLOCATION_CACHE
 	/* perhaps we can directly reuse a buffer in the free-list */
-	uint32_t footprint = compute_data_footprint(handle);
+	uint32_t footprint = starpu_compute_data_footprint(handle);
 
 	TRACE_START_ALLOC_REUSE(dst_node);
 	if (try_to_find_reusable_mem_chunk(dst_node, handle, footprint))