Makefile.am 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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. if !STARPU_SIMGRID
  104. starpu_mpi_TESTS += \
  105. attr \
  106. broadcast \
  107. pingpong \
  108. mpi_test \
  109. mpi_isend \
  110. mpi_earlyrecv \
  111. mpi_earlyrecv2 \
  112. mpi_earlyrecv2_sync \
  113. mpi_irecv \
  114. mpi_redux \
  115. ring \
  116. ring_sync \
  117. ring_sync_detached \
  118. ring_async \
  119. block_interface \
  120. block_interface_pinned \
  121. matrix2 \
  122. insert_task_compute \
  123. insert_task_sent_cache \
  124. insert_task_recv_cache \
  125. insert_task_count \
  126. insert_task_seq \
  127. multiple_send \
  128. user_defined_datatype \
  129. tags_checking \
  130. sync \
  131. gather \
  132. gather2 \
  133. driver
  134. if STARPU_USE_MPI_MPI
  135. starpu_mpi_TESTS += \
  136. load_balancer
  137. endif
  138. # Expected to fail
  139. starpu_mpi_TESTS += \
  140. policy_register_toomany \
  141. policy_unregister \
  142. starpu_redefine
  143. endif
  144. noinst_PROGRAMS = \
  145. datatypes \
  146. pingpong \
  147. mpi_test \
  148. mpi_isend \
  149. mpi_earlyrecv \
  150. mpi_earlyrecv2 \
  151. mpi_earlyrecv2_sync \
  152. mpi_irecv \
  153. mpi_isend_detached \
  154. mpi_irecv_detached \
  155. mpi_detached_tag \
  156. mpi_redux \
  157. ring \
  158. ring_sync \
  159. ring_sync_detached \
  160. ring_async \
  161. ring_async_implicit \
  162. temporary \
  163. block_interface \
  164. block_interface_pinned \
  165. attr \
  166. broadcast \
  167. cache \
  168. cache_disable \
  169. callback \
  170. matrix \
  171. matrix2 \
  172. insert_task \
  173. insert_task_compute \
  174. insert_task_sent_cache \
  175. insert_task_recv_cache \
  176. insert_task_block \
  177. insert_task_owner \
  178. insert_task_owner2 \
  179. insert_task_owner_data \
  180. insert_task_node_choice \
  181. insert_task_count \
  182. insert_task_dyn_handles \
  183. insert_task_seq \
  184. multiple_send \
  185. mpi_scatter_gather \
  186. mpi_reduction \
  187. user_defined_datatype \
  188. tags_checking \
  189. sync \
  190. gather \
  191. gather2 \
  192. policy_register \
  193. policy_register_many \
  194. policy_register_toomany \
  195. policy_unregister \
  196. policy_selection \
  197. policy_selection2 \
  198. early_request \
  199. starpu_redefine \
  200. load_balancer \
  201. driver
  202. XFAIL_TESTS= \
  203. policy_register_toomany \
  204. policy_unregister \
  205. starpu_redefine
  206. ring_SOURCES = ring.c
  207. ring_sync_SOURCES = ring_sync.c
  208. ring_sync_detached_SOURCES = ring_sync_detached.c
  209. ring_async_SOURCES = ring_async.c
  210. ring_async_implicit_SOURCES = ring_async_implicit.c
  211. insert_task_count_SOURCES = insert_task_count.c
  212. if STARPU_USE_CUDA
  213. ring_SOURCES += ring_kernel.cu
  214. ring_sync_SOURCES += ring_kernel.cu
  215. ring_sync_detached_SOURCES += ring_kernel.cu
  216. ring_async_SOURCES += ring_kernel.cu
  217. ring_async_implicit_SOURCES += ring_kernel.cu
  218. insert_task_count_SOURCES += ring_kernel.cu
  219. endif
  220. mpi_reduction_SOURCES = mpi_reduction.c
  221. mpi_reduction_SOURCES += mpi_reduction_kernels.c
  222. user_defined_datatype_SOURCES = user_defined_datatype.c
  223. user_defined_datatype_SOURCES += ../../examples/interface/complex_interface.c
  224. mpi_earlyrecv2_SOURCES = mpi_earlyrecv2.c
  225. mpi_earlyrecv2_SOURCES += ../../examples/interface/complex_interface.c
  226. mpi_earlyrecv2_sync_SOURCES = mpi_earlyrecv2_sync.c
  227. mpi_earlyrecv2_sync_SOURCES += ../../examples/interface/complex_interface.c
  228. endif