Browse Source

fix build

Samuel Thibault 5 years ago
parent
commit
cbdfd16b8d

+ 8 - 0
mpi/examples/helper.h

@@ -17,6 +17,14 @@
 #include <errno.h>
 #include <starpu_mpi.h>
 
+#ifdef STARPU_HAVE_VALGRIND_H
+#include <valgrind/valgrind.h>
+#endif
+
+#ifdef STARPU_HAVE_HELGRIND_H
+#include <valgrind/helgrind.h>
+#endif
+
 #define STARPU_TEST_SKIPPED 77
 
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)

+ 1 - 0
mpi/examples/matrix_decomposition/mpi_decomposition_params.c

@@ -15,6 +15,7 @@
  */
 
 #include "mpi_cholesky.h"
+#include "helper.h"
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>

+ 1 - 0
mpi/examples/mpi_lu/plu_example.c

@@ -15,6 +15,7 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
+#include "helper.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>

+ 1 - 0
mpi/examples/mpi_lu/plu_implicit_example.c

@@ -15,6 +15,7 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
+#include "helper.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>

+ 1 - 0
mpi/examples/mpi_lu/plu_outofcore_example.c

@@ -15,6 +15,7 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
+#include "helper.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>