Browse Source

Disable check and pivoting code in simgrid mode, to save the matrix allocations

Samuel Thibault 10 years ago
parent
commit
7cfc7403f1
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/lu/lu_example.c

+ 6 - 0
examples/lu/lu_example.c

@@ -58,6 +58,7 @@ static void parse_args(int argc, char **argv)
 			nblocks = strtol(argv[++i], &argptr, 10);
 			nblocks = strtol(argv[++i], &argptr, 10);
 		}
 		}
 
 
+#ifndef STARPU_SIMGRID
 		else if (strcmp(argv[i], "-check") == 0)
 		else if (strcmp(argv[i], "-check") == 0)
 		{
 		{
 			check = 1;
 			check = 1;
@@ -72,6 +73,7 @@ static void parse_args(int argc, char **argv)
 		{
 		{
 			no_stride = 1;
 			no_stride = 1;
 		}
 		}
+#endif
 
 
 		else if (strcmp(argv[i], "-profile") == 0)
 		else if (strcmp(argv[i], "-profile") == 0)
 		{
 		{
@@ -315,6 +317,7 @@ int main(int argc, char **argv)
 
 
 	starpu_cublas_init();
 	starpu_cublas_init();
 
 
+#ifndef STARPU_SIMGRID
 	init_matrix();
 	init_matrix();
 
 
 	unsigned *ipiv = NULL;
 	unsigned *ipiv = NULL;
@@ -364,6 +367,7 @@ int main(int argc, char **argv)
 		}
 		}
 	}
 	}
 	else
 	else
+#endif
 	{
 	{
 		ret = STARPU_LU(lu_decomposition)(A, size, size, nblocks);
 		ret = STARPU_LU(lu_decomposition)(A, size, size, nblocks);
 	}
 	}
@@ -403,6 +407,7 @@ int main(int argc, char **argv)
 		}
 		}
 	}
 	}
 
 
+#ifndef STARPU_SIMGRID
 	if (check)
 	if (check)
 	{
 	{
 		FPRINTF(stderr, "Checking result\n");
 		FPRINTF(stderr, "Checking result\n");
@@ -413,6 +418,7 @@ int main(int argc, char **argv)
 
 
 		check_result();
 		check_result();
 	}
 	}
+#endif
 
 
 	starpu_free(A);
 	starpu_free(A);