Browse Source

simgrid: enable more MPI examples

Samuel Thibault 5 years ago
parent
commit
1ed5b747c8
2 changed files with 3 additions and 5 deletions
  1. 1 5
      mpi/examples/Makefile.am
  2. 2 0
      mpi/examples/user_datatype/my_interface.h

+ 1 - 5
mpi/examples/Makefile.am

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2012,2014,2016                           Inria
 # Copyright (C) 2010-2017,2019                           CNRS
-# Copyright (C) 2009-2017,2019                           Université de Bordeaux
+# Copyright (C) 2009-2017,2019-2020                      Université de Bordeaux
 # Copyright (C) 2013                                     Thibaut Lambert
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -248,13 +248,11 @@ matrix_decomposition_mpi_cholesky_distributed_SOURCES =	\
 matrix_decomposition_mpi_cholesky_distributed_LDADD =	\
 	$(STARPU_BLAS_LDFLAGS) -lm
 
-if !STARPU_SIMGRID
 starpu_mpi_EXAMPLES +=				\
 	matrix_decomposition/mpi_cholesky			\
 	matrix_decomposition/mpi_cholesky_distributed
 endif
 endif
-endif
 
 ########################
 # MPI Matrix mult example #
@@ -336,11 +334,9 @@ complex_mpi_complex_SOURCES =		\
 	complex/mpi_complex.c		\
 	../../examples/interface/complex_interface.c
 
-if !STARPU_SIMGRID
 starpu_mpi_EXAMPLES	+=			\
 	complex/mpi_complex
 endif
-endif
 
 #########################
 # user_datatype example #

+ 2 - 0
mpi/examples/user_datatype/my_interface.h

@@ -59,6 +59,7 @@ static struct starpu_codelet starpu_my_data_display_codelet =
 	.cpu_funcs_name = {"starpu_my_data_display_codelet_cpu"},
 	.nbuffers = 1,
 	.modes = {STARPU_R},
+	.model = &starpu_perfmodel_nop,
 	.name = "starpu_my_data_display_codelet"
 };
 
@@ -68,6 +69,7 @@ static struct starpu_codelet starpu_my_data_compare_codelet =
 	.cpu_funcs_name = {"starpu_my_data_compare_codelet_cpu"},
 	.nbuffers = 2,
 	.modes = {STARPU_R, STARPU_R},
+	.model = &starpu_perfmodel_nop,
 	.name = "starpu_my_data_compare_codelet"
 };