瀏覽代碼

Increase buffers so as to work with o_direct on systems with 64K pagesize

Samuel Thibault 7 年之前
父節點
當前提交
a6e4338b34
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      tests/datawizard/variable_size.c
  2. 1 1
      tests/disk/disk_compute.c
  3. 1 1
      tests/disk/disk_pack.c

+ 2 - 2
tests/datawizard/variable_size.c

@@ -91,7 +91,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 * (starpu_lrand48() % 1024 + 1024) / 2048. * (N-sqrt(abs(x-y)*N)) / N;
 	/* Round to page size */
-	interface.size -= interface.size & (4096-1);
+	interface.size -= interface.size & (65536-1);
 
 	starpu_data_register(handleptr, -1, &interface, &starpu_interface_variable_size_ops);
 }
@@ -200,7 +200,7 @@ static void kernel(void *descr[], void *cl_arg)
 	/* Simulate that tiles close to the diagonal fill up faster */
 	size_t increase = (FULLSIZE - variable_interface->size) * (starpu_lrand48() % 1024 + 1024) / 2048. * INCREASE;
 	/* Round to page size */
-	increase -= increase & (4096-1);
+	increase -= increase & (65536-1);
 	variable_interface->ptr = starpu_malloc_on_node_flags(dst_node, variable_interface->size + increase, STARPU_MALLOC_PINNED | STARPU_MALLOC_COUNT | STARPU_MEMORY_OVERFLOW);
 	STARPU_ASSERT(variable_interface->ptr);
 	/* fprintf(stderr,"increase from %lu by %lu\n", variable_interface->size, increase); */

+ 1 - 1
tests/disk/disk_compute.c

@@ -38,7 +38,7 @@
  * actually
  */
 
-#define NX (1024)
+#define NX (16*1024)
 
 int dotest(struct starpu_disk_ops *ops, char *base)
 {

+ 1 - 1
tests/disk/disk_pack.c

@@ -41,7 +41,7 @@ int main(int argc, char **argv)
  * Here we force using the pack/unpack mechanism
  */
 
-#define NX (1024)
+#define NX (16*1024)
 
 const struct starpu_data_copy_methods my_vector_copy_data_methods_s;
 struct starpu_data_interface_ops starpu_interface_my_vector_ops;