|
@@ -566,7 +566,7 @@ int starpu_data_can_evict(starpu_data_handle_t handle, unsigned node)
|
|
|
/* This function is called for memory chunks that are possibly in used (ie. not
|
|
|
* in the cache). They should therefore still be associated to a handle. */
|
|
|
/* mc_lock is held and may be temporarily released! */
|
|
|
-static size_t try_to_throw_mem_chunk(struct _starpu_mem_chunk *mc, unsigned node, struct _starpu_data_replicate *replicate, unsigned is_already_in_mc_list, enum _starpu_is_prefetch is_prefetch)
|
|
|
+static size_t try_to_throw_mem_chunk(struct _starpu_mem_chunk *mc, unsigned node, struct _starpu_data_replicate *replicate, unsigned is_already_in_mc_list, enum starpu_is_prefetch is_prefetch)
|
|
|
{
|
|
|
size_t freed = 0;
|
|
|
|
|
@@ -796,7 +796,7 @@ static int try_to_find_reusable_mc(unsigned node, starpu_data_handle_t data, str
|
|
|
|
|
|
/* this function looks for a memory chunk that matches a given footprint in the
|
|
|
* list of mem chunk that are not important */
|
|
|
-static int try_to_reuse_not_important_mc(unsigned node, starpu_data_handle_t data, struct _starpu_data_replicate *replicate, uint32_t footprint, enum _starpu_is_prefetch is_prefetch)
|
|
|
+static int try_to_reuse_not_important_mc(unsigned node, starpu_data_handle_t data, struct _starpu_data_replicate *replicate, uint32_t footprint, enum starpu_is_prefetch is_prefetch)
|
|
|
{
|
|
|
struct _starpu_mem_chunk *mc, *orig_next_mc, *next_mc;
|
|
|
int success = 0;
|
|
@@ -855,7 +855,7 @@ restart:
|
|
|
* Try to find a buffer currently in use on the memory node which has the given
|
|
|
* footprint.
|
|
|
*/
|
|
|
-static int try_to_reuse_potentially_in_use_mc(unsigned node, starpu_data_handle_t handle, struct _starpu_data_replicate *replicate, uint32_t footprint, enum _starpu_is_prefetch is_prefetch)
|
|
|
+static int try_to_reuse_potentially_in_use_mc(unsigned node, starpu_data_handle_t handle, struct _starpu_data_replicate *replicate, uint32_t footprint, enum starpu_is_prefetch is_prefetch)
|
|
|
{
|
|
|
struct _starpu_mem_chunk *mc, *next_mc, *orig_next_mc;
|
|
|
int success = 0;
|
|
@@ -1444,7 +1444,7 @@ void _starpu_request_mem_chunk_removal(starpu_data_handle_t handle, struct _star
|
|
|
*
|
|
|
*/
|
|
|
|
|
|
-static starpu_ssize_t _starpu_allocate_interface(starpu_data_handle_t handle, struct _starpu_data_replicate *replicate, unsigned dst_node, enum _starpu_is_prefetch is_prefetch)
|
|
|
+static starpu_ssize_t _starpu_allocate_interface(starpu_data_handle_t handle, struct _starpu_data_replicate *replicate, unsigned dst_node, enum starpu_is_prefetch is_prefetch)
|
|
|
{
|
|
|
unsigned attempts = 0;
|
|
|
starpu_ssize_t allocated_memory;
|
|
@@ -1613,7 +1613,7 @@ out:
|
|
|
return allocated_memory;
|
|
|
}
|
|
|
|
|
|
-int _starpu_allocate_memory_on_node(starpu_data_handle_t handle, struct _starpu_data_replicate *replicate, enum _starpu_is_prefetch is_prefetch)
|
|
|
+int _starpu_allocate_memory_on_node(starpu_data_handle_t handle, struct _starpu_data_replicate *replicate, enum starpu_is_prefetch is_prefetch)
|
|
|
{
|
|
|
starpu_ssize_t allocated_memory;
|
|
|
|