Makefile.am 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. # Copyright (C) 2013 Thibaut Lambert
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  17. include $(top_srcdir)/starpu.mk
  18. CC=$(MPICC)
  19. CCLD=$(MPICC)
  20. noinst_PROGRAMS =
  21. if STARPU_HAVE_WINDOWS
  22. LOADER_BIN =
  23. else
  24. loader_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_builddir)/src/
  25. if !STARPU_SIMGRID
  26. LOADER = loader
  27. LOADER_BIN = $(abs_top_builddir)/mpi/tests/$(LOADER)
  28. noinst_PROGRAMS += loader
  29. endif
  30. loader_SOURCES = ../../tests/loader.c
  31. endif
  32. if STARPU_SIMGRID
  33. MPI = $(abs_top_builddir)/tools/starpu_smpirun -np 4 -platform $(abs_top_srcdir)/tools/perfmodels/cluster.xml -hostfile $(abs_top_srcdir)/tools/perfmodels/hostfile
  34. else
  35. # we always test on 4 processes, the execution time is not that bigger
  36. if STARPU_QUICK_CHECK
  37. MPI = $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
  38. else
  39. MPI = $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
  40. endif
  41. endif
  42. if STARPU_HAVE_AM111
  43. TESTS_ENVIRONMENT = STARPU_WORKERS_NOBIND=1 STARPU_NCPU=3 top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  44. LOG_COMPILER = $(MPI) $(LOADER_BIN)
  45. else
  46. TESTS_ENVIRONMENT = STARPU_WORKERS_NOBIND=1 STARPU_NCPU=3 top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(MPI) $(LOADER_BIN)
  47. endif
  48. if STARPU_MPI_CHECK
  49. TESTS = $(starpu_mpi_TESTS)
  50. endif
  51. check_PROGRAMS = $(LOADER) $(starpu_mpi_TESTS)
  52. BUILT_SOURCES =
  53. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  54. EXTRA_DIST = \
  55. helper.h \
  56. user_defined_datatype_value.h
  57. examplebindir = $(libdir)/starpu/examples/mpi
  58. examplebin_PROGRAMS =
  59. if STARPU_USE_CUDA
  60. if STARPU_COVERITY
  61. include $(top_srcdir)/starpu-mynvcc.mk
  62. else
  63. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ $(STARPU_H_CPPFLAGS)
  64. .cu.cubin:
  65. $(V_nvcc) $(NVCC) -cubin $< -o $@ $(NVCCFLAGS)
  66. .cu.o:
  67. $(V_nvcc) $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  68. endif
  69. endif
  70. AM_CFLAGS += -Wno-unused
  71. AM_CXXFLAGS += -Wno-unused
  72. AM_FFLAGS += -Wno-unused
  73. AM_FCFLAGS += -Wno-unused
  74. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include -I$(top_srcdir)/mpi/include -I$(top_srcdir)/mpi/src -I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/examples/ $(STARPU_H_CPPFLAGS)
  75. AM_LDFLAGS = @STARPU_EXPORT_DYNAMIC@
  76. LIBS += $(STARPU_CUDA_LDFLAGS)
  77. LIBS += $(top_builddir)/src/@LIBSTARPU_LINK@ ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la $(STARPU_EXPORTED_LIBS)
  78. ########################
  79. # Unit testcases #
  80. ########################
  81. starpu_mpi_TESTS =
  82. starpu_mpi_TESTS += \
  83. broadcast \
  84. callback \
  85. driver \
  86. early_request \
  87. gather \
  88. gather2 \
  89. insert_task \
  90. insert_task_block \
  91. insert_task_count \
  92. insert_task_dyn_handles \
  93. insert_task_node_choice \
  94. insert_task_owner \
  95. insert_task_owner2 \
  96. insert_task_owner_data \
  97. insert_task_tags \
  98. matrix \
  99. matrix2 \
  100. mpi_barrier \
  101. mpi_detached_tag \
  102. mpi_earlyrecv \
  103. mpi_irecv \
  104. mpi_irecv_detached \
  105. mpi_isend \
  106. mpi_isend_detached \
  107. mpi_reduction \
  108. mpi_redux \
  109. mpi_scatter_gather \
  110. mpi_test \
  111. multiple_send \
  112. pingpong \
  113. policy_register \
  114. policy_register_many \
  115. policy_selection \
  116. policy_selection2 \
  117. ring \
  118. ring_async \
  119. ring_async_implicit \
  120. ring_sync \
  121. ring_sync_detached \
  122. temporary \
  123. user_defined_datatype \
  124. early_stuff
  125. if !STARPU_SIMGRID
  126. # missing support in simgrid
  127. starpu_mpi_TESTS += \
  128. attr \
  129. display_bindings \
  130. mpi_earlyrecv2 \
  131. mpi_earlyrecv2_sync \
  132. block_interface \
  133. block_interface_pinned \
  134. insert_task_compute \
  135. insert_task_sent_cache \
  136. insert_task_recv_cache \
  137. insert_task_seq \
  138. tags_checking \
  139. sync
  140. if STARPU_USE_MPI_MPI
  141. starpu_mpi_TESTS += \
  142. load_balancer
  143. endif
  144. # Expected to fail
  145. starpu_mpi_TESTS += \
  146. policy_register_toomany \
  147. policy_unregister \
  148. starpu_redefine
  149. endif
  150. noinst_PROGRAMS += \
  151. datatypes \
  152. pingpong \
  153. mpi_test \
  154. mpi_isend \
  155. mpi_earlyrecv \
  156. mpi_earlyrecv2 \
  157. mpi_earlyrecv2_sync \
  158. mpi_irecv \
  159. mpi_barrier \
  160. mpi_isend_detached \
  161. mpi_irecv_detached \
  162. mpi_detached_tag \
  163. mpi_redux \
  164. ring \
  165. ring_sync \
  166. ring_sync_detached \
  167. ring_async \
  168. ring_async_implicit \
  169. temporary \
  170. early_stuff \
  171. block_interface \
  172. block_interface_pinned \
  173. attr \
  174. broadcast \
  175. callback \
  176. matrix \
  177. matrix2 \
  178. insert_task \
  179. insert_task_compute \
  180. insert_task_sent_cache \
  181. insert_task_recv_cache \
  182. insert_task_block \
  183. insert_task_owner \
  184. insert_task_owner2 \
  185. insert_task_owner_data \
  186. insert_task_node_choice \
  187. insert_task_count \
  188. insert_task_dyn_handles \
  189. insert_task_seq \
  190. insert_task_tags \
  191. multiple_send \
  192. mpi_scatter_gather \
  193. mpi_reduction \
  194. user_defined_datatype \
  195. tags_checking \
  196. sync \
  197. gather \
  198. gather2 \
  199. policy_register \
  200. policy_register_many \
  201. policy_register_toomany \
  202. policy_unregister \
  203. policy_selection \
  204. policy_selection2 \
  205. early_request \
  206. starpu_redefine \
  207. load_balancer \
  208. driver \
  209. nothing \
  210. display_bindings
  211. XFAIL_TESTS= \
  212. policy_register_toomany \
  213. policy_unregister \
  214. starpu_redefine \
  215. nothing
  216. ring_SOURCES = ring.c
  217. ring_sync_SOURCES = ring_sync.c
  218. ring_sync_detached_SOURCES = ring_sync_detached.c
  219. ring_async_SOURCES = ring_async.c
  220. ring_async_implicit_SOURCES = ring_async_implicit.c
  221. insert_task_count_SOURCES = insert_task_count.c
  222. if STARPU_USE_CUDA
  223. ring_SOURCES += ring_kernel.cu
  224. ring_sync_SOURCES += ring_kernel.cu
  225. ring_sync_detached_SOURCES += ring_kernel.cu
  226. ring_async_SOURCES += ring_kernel.cu
  227. ring_async_implicit_SOURCES += ring_kernel.cu
  228. insert_task_count_SOURCES += ring_kernel.cu
  229. endif
  230. mpi_reduction_SOURCES = mpi_reduction.c
  231. mpi_reduction_SOURCES += mpi_reduction_kernels.c
  232. user_defined_datatype_SOURCES = user_defined_datatype.c
  233. user_defined_datatype_SOURCES += ../../examples/interface/complex_interface.c
  234. mpi_earlyrecv2_SOURCES = mpi_earlyrecv2.c
  235. mpi_earlyrecv2_SOURCES += ../../examples/interface/complex_interface.c
  236. mpi_earlyrecv2_sync_SOURCES = mpi_earlyrecv2_sync.c
  237. mpi_earlyrecv2_sync_SOURCES += ../../examples/interface/complex_interface.c