|
@@ -89,7 +89,7 @@ void variable_size_data_register(starpu_data_handle_t *handleptr, unsigned x, un
|
|
|
};
|
|
|
|
|
|
/* Simulate that tiles close to the diagonal are more dense */
|
|
|
- interface.size = FULLSIZE * (random() % 1024 + 1024) / 2048 * (N-sqrt(abs(x-y)*N)) / N;
|
|
|
+ interface.size = FULLSIZE * (starpu_lrand48() % 1024 + 1024) / 2048. * (N-sqrt(abs(x-y)*N)) / N;
|
|
|
/* Round to page size */
|
|
|
interface.size -= interface.size & (4096-1);
|
|
|
|
|
@@ -189,7 +189,7 @@ static void kernel(void *descr[], void *cl_arg)
|
|
|
unsigned dst_node = starpu_worker_get_memory_node(workerid);
|
|
|
|
|
|
/* Simulate that tiles close to the diagonal fill up faster */
|
|
|
- size_t increase = (FULLSIZE - variable_interface->size) * (random() % 1024 + 1024) / 2048 * INCREASE;
|
|
|
+ size_t increase = (FULLSIZE - variable_interface->size) * (starpu_lrand48() % 1024 + 1024) / 2048. * INCREASE;
|
|
|
/* Round to page size */
|
|
|
increase -= increase & (4096-1);
|
|
|
variable_interface->ptr = starpu_malloc_on_node_flags(dst_node, variable_interface->size + increase, STARPU_MALLOC_PINNED | STARPU_MALLOC_COUNT | STARPU_MEMORY_OVERFLOW);
|