Makefile.am 6.7 KB

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