Makefile.am 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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_CFLAGS) $(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/ $(HWLOC_CFLAGS)
  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 = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  71. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  72. 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/
  73. AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  74. ########################
  75. # Unit testcases #
  76. ########################
  77. starpu_mpi_TESTS =
  78. starpu_mpi_TESTS += \
  79. broadcast \
  80. callback \
  81. driver \
  82. early_request \
  83. gather \
  84. gather2 \
  85. insert_task \
  86. insert_task_block \
  87. insert_task_count \
  88. insert_task_dyn_handles \
  89. insert_task_node_choice \
  90. insert_task_owner \
  91. insert_task_owner2 \
  92. insert_task_owner_data \
  93. matrix \
  94. matrix2 \
  95. mpi_barrier \
  96. mpi_detached_tag \
  97. mpi_earlyrecv \
  98. mpi_irecv \
  99. mpi_irecv_detached \
  100. mpi_isend \
  101. mpi_isend_detached \
  102. mpi_reduction \
  103. mpi_redux \
  104. mpi_scatter_gather \
  105. mpi_test \
  106. multiple_send \
  107. pingpong \
  108. policy_register \
  109. policy_register_many \
  110. policy_selection \
  111. policy_selection2 \
  112. ring \
  113. ring_async \
  114. ring_async_implicit \
  115. ring_sync \
  116. ring_sync_detached \
  117. temporary \
  118. user_defined_datatype \
  119. early_stuff
  120. if !STARPU_SIMGRID
  121. # missing support in simgrid
  122. starpu_mpi_TESTS += \
  123. attr \
  124. display_bindings \
  125. mpi_earlyrecv2 \
  126. mpi_earlyrecv2_sync \
  127. block_interface \
  128. block_interface_pinned \
  129. insert_task_compute \
  130. insert_task_sent_cache \
  131. insert_task_recv_cache \
  132. insert_task_seq \
  133. tags_checking \
  134. sync
  135. if STARPU_USE_MPI_MPI
  136. starpu_mpi_TESTS += \
  137. load_balancer
  138. endif
  139. # Expected to fail
  140. starpu_mpi_TESTS += \
  141. policy_register_toomany \
  142. policy_unregister \
  143. starpu_redefine
  144. endif
  145. noinst_PROGRAMS += \
  146. datatypes \
  147. pingpong \
  148. mpi_test \
  149. mpi_isend \
  150. mpi_earlyrecv \
  151. mpi_earlyrecv2 \
  152. mpi_earlyrecv2_sync \
  153. mpi_irecv \
  154. mpi_barrier \
  155. mpi_isend_detached \
  156. mpi_irecv_detached \
  157. mpi_detached_tag \
  158. mpi_redux \
  159. ring \
  160. ring_sync \
  161. ring_sync_detached \
  162. ring_async \
  163. ring_async_implicit \
  164. temporary \
  165. early_stuff \
  166. block_interface \
  167. block_interface_pinned \
  168. attr \
  169. broadcast \
  170. callback \
  171. matrix \
  172. matrix2 \
  173. insert_task \
  174. insert_task_compute \
  175. insert_task_sent_cache \
  176. insert_task_recv_cache \
  177. insert_task_block \
  178. insert_task_owner \
  179. insert_task_owner2 \
  180. insert_task_owner_data \
  181. insert_task_node_choice \
  182. insert_task_count \
  183. insert_task_dyn_handles \
  184. insert_task_seq \
  185. multiple_send \
  186. mpi_scatter_gather \
  187. mpi_reduction \
  188. user_defined_datatype \
  189. tags_checking \
  190. sync \
  191. gather \
  192. gather2 \
  193. policy_register \
  194. policy_register_many \
  195. policy_register_toomany \
  196. policy_unregister \
  197. policy_selection \
  198. policy_selection2 \
  199. early_request \
  200. starpu_redefine \
  201. load_balancer \
  202. driver \
  203. nothing \
  204. display_bindings
  205. if STARPU_USE_MPI_FT
  206. noinst_PROGRAMS += \
  207. checkpoints
  208. endif STARPU_USE_MPI_FT
  209. XFAIL_TESTS= \
  210. policy_register_toomany \
  211. policy_unregister \
  212. starpu_redefine \
  213. nothing
  214. ring_SOURCES = ring.c
  215. ring_sync_SOURCES = ring_sync.c
  216. ring_sync_detached_SOURCES = ring_sync_detached.c
  217. ring_async_SOURCES = ring_async.c
  218. ring_async_implicit_SOURCES = ring_async_implicit.c
  219. insert_task_count_SOURCES = insert_task_count.c
  220. if STARPU_USE_CUDA
  221. ring_SOURCES += ring_kernel.cu
  222. ring_sync_SOURCES += ring_kernel.cu
  223. ring_sync_detached_SOURCES += ring_kernel.cu
  224. ring_async_SOURCES += ring_kernel.cu
  225. ring_async_implicit_SOURCES += ring_kernel.cu
  226. insert_task_count_SOURCES += ring_kernel.cu
  227. endif
  228. mpi_reduction_SOURCES = mpi_reduction.c
  229. mpi_reduction_SOURCES += mpi_reduction_kernels.c
  230. user_defined_datatype_SOURCES = user_defined_datatype.c
  231. user_defined_datatype_SOURCES += ../../examples/interface/complex_interface.c
  232. mpi_earlyrecv2_SOURCES = mpi_earlyrecv2.c
  233. mpi_earlyrecv2_SOURCES += ../../examples/interface/complex_interface.c
  234. mpi_earlyrecv2_sync_SOURCES = mpi_earlyrecv2_sync.c
  235. mpi_earlyrecv2_sync_SOURCES += ../../examples/interface/complex_interface.c