Przeglądaj źródła

explain why 128*1024 loops

Samuel Thibault 13 lat temu
rodzic
commit
800a2184fd
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      tests/main/tag_task_data_deps.c

+ 3 - 4
tests/main/tag_task_data_deps.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  *
- * Copyright (C) 2010-2012  Université de Bordeaux 1
+ * Copyright (C) 2010-2013  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  *
  * StarPU is free software; you can redistribute it and/or modify
  * StarPU is free software; you can redistribute it and/or modify
@@ -26,8 +26,6 @@
 #include <starpu.h>
 #include <starpu.h>
 #include "../helper.h"
 #include "../helper.h"
 
 
-#define NLOOPS	(128*1024)
-
 static void dummy_func(void *descr[] __attribute__ ((unused)), void *arg)
 static void dummy_func(void *descr[] __attribute__ ((unused)), void *arg)
 {
 {
 	unsigned duration = (uintptr_t) arg;
 	unsigned duration = (uintptr_t) arg;
@@ -79,7 +77,8 @@ static struct starpu_task *create_dummy_task(int write, int data, unsigned durat
 int main(int argc, char **argv)
 int main(int argc, char **argv)
 {
 {
 	int ret;
 	int ret;
-	unsigned loop, nloops = NLOOPS;
+	/* We have 27 toggles to try below, thus 2^27 possibilities */
+	unsigned loop, nloops = 128*1024;
 	unsigned duration = 1000;
 	unsigned duration = 1000;
 
 
 	starpu_data_handle_t handle1, handle2;
 	starpu_data_handle_t handle1, handle2;