Makefile.am 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2012 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014 Centre National de la Recherche Scientifique
  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. CC=$(MPICC)
  17. CCLD=$(MPICC)
  18. if STARPU_HAVE_WINDOWS
  19. LOADER_BIN =
  20. else
  21. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  22. LOADER = loader
  23. LOADER_BIN = $(abs_top_builddir)/mpi/tests/$(LOADER)
  24. loader_SOURCES = ../../tests/loader.c
  25. endif
  26. if STARPU_QUICK_CHECK
  27. MPI = $(MPIEXEC) -np 2
  28. else
  29. MPI = $(MPIEXEC) -np 4
  30. endif
  31. if STARPU_HAVE_AM111
  32. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  33. LOG_COMPILER = $(MPI) $(LOADER_BIN)
  34. else
  35. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(MPI) $(LOADER_BIN)
  36. endif
  37. if STARPU_MPI_CHECK
  38. TESTS = $(starpu_mpi_TESTS)
  39. endif
  40. check_PROGRAMS = $(LOADER) $(starpu_mpi_TESTS)
  41. BUILT_SOURCES =
  42. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  43. EXTRA_DIST = \
  44. user_defined_datatype_value.h
  45. examplebindir = $(libdir)/starpu/examples/mpi
  46. examplebin_PROGRAMS =
  47. if STARPU_USE_CUDA
  48. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ $(HWLOC_CFLAGS)
  49. .cu.cubin:
  50. $(MKDIR_P) `dirname $@`
  51. $(NVCC) -cubin $< -o $@ $(NVCCFLAGS)
  52. .cu.o:
  53. $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  54. endif
  55. AM_CFLAGS = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  56. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  57. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include -I$(top_srcdir)/mpi/include -I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/examples/
  58. AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS)
  59. ########################
  60. # Unit testcases #
  61. ########################
  62. starpu_mpi_TESTS = \
  63. datatypes \
  64. pingpong \
  65. mpi_test \
  66. mpi_isend \
  67. mpi_earlyrecv \
  68. mpi_earlyrecv2 \
  69. mpi_irecv \
  70. mpi_isend_detached \
  71. mpi_irecv_detached \
  72. mpi_detached_tag \
  73. mpi_redux \
  74. ring \
  75. ring_async \
  76. ring_async_implicit \
  77. block_interface \
  78. block_interface_pinned \
  79. callback \
  80. insert_task \
  81. insert_task_compute \
  82. insert_task_sent_cache \
  83. insert_task_recv_cache \
  84. insert_task_block \
  85. insert_task_owner \
  86. insert_task_owner2 \
  87. insert_task_owner_data \
  88. multiple_send \
  89. mpi_scatter_gather \
  90. mpi_reduction \
  91. user_defined_datatype \
  92. gather \
  93. gather2
  94. noinst_PROGRAMS = \
  95. datatypes \
  96. pingpong \
  97. mpi_test \
  98. mpi_isend \
  99. mpi_earlyrecv \
  100. mpi_earlyrecv2 \
  101. mpi_irecv \
  102. mpi_isend_detached \
  103. mpi_irecv_detached \
  104. mpi_detached_tag \
  105. mpi_redux \
  106. ring \
  107. ring_async \
  108. ring_async_implicit \
  109. block_interface \
  110. block_interface_pinned \
  111. callback \
  112. insert_task \
  113. insert_task_compute \
  114. insert_task_sent_cache \
  115. insert_task_recv_cache \
  116. insert_task_block \
  117. insert_task_owner \
  118. insert_task_owner2 \
  119. insert_task_owner_data \
  120. multiple_send \
  121. mpi_scatter_gather \
  122. mpi_reduction \
  123. user_defined_datatype \
  124. gather \
  125. gather2
  126. mpi_isend_LDADD = \
  127. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  128. mpi_earlyrecv_LDADD = \
  129. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  130. mpi_earlyrecv2_LDADD = \
  131. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  132. mpi_irecv_LDADD = \
  133. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  134. mpi_isend_detached_LDADD = \
  135. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  136. mpi_irecv_detached_LDADD = \
  137. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  138. mpi_detached_tag_LDADD = \
  139. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  140. mpi_redux_LDADD = \
  141. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  142. datatypes_LDADD = \
  143. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  144. pingpong_LDADD = \
  145. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  146. mpi_test_LDADD = \
  147. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  148. ring_LDADD = \
  149. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  150. ring_async_LDADD = \
  151. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  152. ring_async_implicit_LDADD = \
  153. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  154. block_interface_LDADD = \
  155. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  156. block_interface_pinned_LDADD = \
  157. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  158. callback_LDADD = \
  159. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  160. insert_task_LDADD = \
  161. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  162. insert_task_compute_LDADD = \
  163. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  164. insert_task_sent_cache_LDADD = \
  165. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  166. insert_task_recv_cache_LDADD = \
  167. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  168. insert_task_block_LDADD = \
  169. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  170. insert_task_owner_LDADD = \
  171. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  172. insert_task_owner2_LDADD = \
  173. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  174. insert_task_owner_data_LDADD = \
  175. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  176. multiple_send_LDADD = \
  177. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  178. mpi_scatter_gather_LDADD = \
  179. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  180. mpi_reduction_LDADD = \
  181. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  182. user_defined_datatype_LDADD = \
  183. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  184. gather_LDADD = \
  185. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  186. gather2_LDADD = \
  187. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  188. ring_SOURCES = ring.c
  189. ring_async_SOURCES = ring_async.c
  190. ring_async_implicit_SOURCES = ring_async_implicit.c
  191. if STARPU_USE_CUDA
  192. ring_SOURCES += ring_kernel.cu
  193. ring_async_SOURCES += ring_kernel.cu
  194. ring_async_implicit_SOURCES += ring_kernel.cu
  195. endif
  196. mpi_reduction_SOURCES = mpi_reduction.c
  197. mpi_reduction_SOURCES += mpi_reduction_kernels.c
  198. user_defined_datatype_SOURCES = user_defined_datatype.c
  199. user_defined_datatype_SOURCES += ../../examples/interface/complex_interface.c
  200. mpi_earlyrecv2_SOURCES = mpi_earlyrecv2.c
  201. mpi_earlyrecv2_SOURCES += ../../examples/interface/complex_interface.c
  202. showcheck:
  203. -cat $(TEST_LOGS) /dev/null