Browse Source

Avoid letting lu allocate memory in simulation mode

Samuel Thibault 6 years ago
parent
commit
8f1613cb31
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/lu/lu_example.c

+ 4 - 0
examples/lu/lu_example.c

@@ -176,7 +176,11 @@ void copy_matrix_into_blocks(void)
 static void init_matrix(void)
 {
 	/* allocate matrix */
+#ifdef STARPU_SIMGRID
+	A = (void*) 1;
+#else
 	starpu_malloc_flags((void **)&A, (size_t)size*size*sizeof(TYPE), STARPU_MALLOC_PINNED|STARPU_MALLOC_SIMULATION_FOLDED);
+#endif
 	STARPU_ASSERT(A);
 
 	starpu_srand48((long int)time(NULL));