Browse Source

make the tag_example tests less verbose

Cédric Augonnet 16 years ago
parent
commit
219384c426
2 changed files with 7 additions and 6 deletions
  1. 4 3
      examples/tag_example/tag_example.c
  2. 3 3
      examples/tag_example/tag_example2.c

+ 4 - 3
examples/tag_example/tag_example.c

@@ -30,7 +30,7 @@ starpu_codelet cl;
 
 
 #define Ni	64
 #define Ni	64
 #define Nj	32
 #define Nj	32
-#define Nk	2
+#define Nk	128
 
 
 static unsigned ni = Ni, nj = Nj, nk = Nk;
 static unsigned ni = Ni, nj = Nj, nk = Nk;
 static unsigned callback_cnt;
 static unsigned callback_cnt;
@@ -81,8 +81,7 @@ static void create_task_grid(unsigned iter)
 {
 {
 	unsigned i, j;
 	unsigned i, j;
 
 
-	fprintf(stderr, "start iter %d...\n", iter);
-
+//	fprintf(stderr, "start iter %d...\n", iter);
 	callback_cnt = (ni*nj);
 	callback_cnt = (ni*nj);
 
 
 	/* create non-entry tasks */
 	/* create non-entry tasks */
@@ -188,6 +187,8 @@ int main(int argc __attribute__((unused)) , char **argv __attribute__((unused)))
 
 
 	parse_args(argc, argv);
 	parse_args(argc, argv);
 
 
+	fprintf(stderr, "ITER: %d\n", n);
+
 	cl.where = CORE;
 	cl.where = CORE;
 	cl.core_func = core_codelet;
 	cl.core_func = core_codelet;
 	cl.cublas_func = core_codelet;
 	cl.cublas_func = core_codelet;

+ 3 - 3
examples/tag_example/tag_example2.c

@@ -29,7 +29,7 @@ sem_t sem;
 starpu_codelet cl;
 starpu_codelet cl;
 
 
 #define Ni	64
 #define Ni	64
-#define Nk	2
+#define Nk	256
 
 
 static unsigned ni = Ni, nk = Nk;
 static unsigned ni = Ni, nk = Nk;
 static unsigned callback_cnt;
 static unsigned callback_cnt;
@@ -73,7 +73,7 @@ static void create_task_grid(unsigned iter)
 {
 {
 	unsigned i;
 	unsigned i;
 
 
-	fprintf(stderr, "start iter %d ni %d...\n", iter, ni);
+//	fprintf(stderr, "start iter %d ni %d...\n", iter, ni);
 
 
 	callback_cnt = (ni);
 	callback_cnt = (ni);
 
 
@@ -113,7 +113,7 @@ int main(int argc __attribute__((unused)) , char **argv __attribute__((unused)))
 	cl.where = CORE;
 	cl.where = CORE;
 	cl.nbuffers = 0;
 	cl.nbuffers = 0;
 
 
-	fprintf(stderr, "ITER : %d\n", iter);
+	fprintf(stderr, "ITER : %d\n", nk);
 
 
 	for (i = 0; i < nk; i++)
 	for (i = 0; i < nk; i++)
 	{
 	{