Makefile.am 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2011 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011 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. if STARPU_MPI_CHECK
  18. TESTS_ENVIRONMENT = $(MPIEXEC) -np 2
  19. TESTS = $(check_PROGRAMS)
  20. endif
  21. check_PROGRAMS =
  22. BUILT_SOURCES =
  23. CLEANFILES = *.gcno *.gcda *.linkinfo
  24. EXTRA_DIST = \
  25. examples/mpi_lu/float.h \
  26. examples/mpi_lu/double.h \
  27. examples/mpi_lu/plu_example.c \
  28. examples/mpi_lu/plu_solve.c \
  29. examples/mpi_lu/pxlu.h \
  30. examples/mpi_lu/pxlu.c \
  31. examples/mpi_lu/pxlu_kernels.h \
  32. examples/mpi_lu/pxlu_kernels.c \
  33. examples/cholesky/mpi_cholesky.h \
  34. examples/cholesky/mpi_cholesky_models.h \
  35. tests/helper.h
  36. examplebindir = $(libdir)/starpu/examples/mpi
  37. examplebin_PROGRAMS =
  38. if STARPU_USE_CUDA
  39. # TODO define NVCCFLAGS
  40. NVCC ?= nvcc
  41. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include
  42. .cu.cubin:
  43. $(MKDIR_P) `dirname $@`
  44. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  45. .cu.o:
  46. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I$(top_srcdir)/include/ -I$(top_builddir)/include/
  47. endif
  48. AM_CFLAGS = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS)
  49. LIBS = $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  50. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/mpi/ -I$(top_srcdir)/src/ -I$(top_srcdir)/examples/ -I$(top_builddir)/src -I$(top_builddir)/include
  51. AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
  52. lib_LTLIBRARIES = libstarpumpi.la
  53. libstarpumpi_la_LIBADD = $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la
  54. noinst_HEADERS = \
  55. starpu_mpi_private.h \
  56. starpu_mpi_fxt.h
  57. versincludedir = $(includedir)/starpu-$(STARPU_EFFECTIVE_VERSION)
  58. versinclude_HEADERS = \
  59. starpu_mpi.h \
  60. starpu_mpi_datatype.h
  61. libstarpumpi_la_SOURCES = \
  62. starpu_mpi.c \
  63. starpu_mpi_helper.c \
  64. starpu_mpi_datatype.c \
  65. starpu_mpi_insert_task.c \
  66. starpu_mpi_collective.c
  67. ###################
  68. # Stencil example #
  69. ###################
  70. examplebin_PROGRAMS += \
  71. examples/stencil/stencil5
  72. examples_stencil_stencil5_LDADD = \
  73. libstarpumpi.la
  74. check_PROGRAMS += \
  75. examples/stencil/stencil5
  76. ##################
  77. # MPI LU example #
  78. ##################
  79. if !NO_BLAS_LIB
  80. examplebin_PROGRAMS += \
  81. examples/mpi_lu/plu_example_float \
  82. examples/mpi_lu/plu_example_double
  83. examples_mpi_lu_plu_example_float_LDADD = \
  84. libstarpumpi.la \
  85. $(STARPU_LIBNUMA_LDFLAGS) \
  86. $(STARPU_BLAS_LDFLAGS)
  87. examples_mpi_lu_plu_example_float_SOURCES = \
  88. examples/mpi_lu/plu_example_float.c \
  89. examples/mpi_lu/plu_solve_float.c \
  90. examples/mpi_lu/pslu_kernels.c \
  91. examples/mpi_lu/pslu.c \
  92. $(top_srcdir)/examples/common/blas.c
  93. examples_mpi_lu_plu_example_double_LDADD = \
  94. libstarpumpi.la \
  95. $(STARPU_LIBNUMA_LDFLAGS) \
  96. $(STARPU_BLAS_LDFLAGS)
  97. examples_mpi_lu_plu_example_double_SOURCES = \
  98. examples/mpi_lu/plu_example_double.c \
  99. examples/mpi_lu/plu_solve_double.c \
  100. examples/mpi_lu/pdlu_kernels.c \
  101. examples/mpi_lu/pdlu.c \
  102. $(top_srcdir)/examples/common/blas.c
  103. endif
  104. ########################
  105. # MPI Cholesky example #
  106. ########################
  107. if !NO_BLAS_LIB
  108. examplebin_PROGRAMS += \
  109. examples/cholesky/mpi_cholesky \
  110. examples/cholesky/mpi_cholesky_distributed
  111. examples_cholesky_mpi_cholesky_SOURCES = \
  112. examples/cholesky/mpi_cholesky.c \
  113. examples/cholesky/mpi_cholesky_models.c \
  114. examples/cholesky/mpi_cholesky_kernels.c \
  115. $(top_srcdir)/examples/common/blas.c
  116. examples_cholesky_mpi_cholesky_LDADD = \
  117. libstarpumpi.la \
  118. $(STARPU_BLAS_LDFLAGS)
  119. examples_cholesky_mpi_cholesky_distributed_SOURCES = \
  120. examples/cholesky/mpi_cholesky_distributed.c \
  121. examples/cholesky/mpi_cholesky_models.c \
  122. examples/cholesky/mpi_cholesky_kernels.c \
  123. $(top_srcdir)/examples/common/blas.c
  124. examples_cholesky_mpi_cholesky_distributed_LDADD = \
  125. libstarpumpi.la \
  126. $(STARPU_BLAS_LDFLAGS)
  127. check_PROGRAMS += \
  128. examples/cholesky/mpi_cholesky \
  129. examples/cholesky/mpi_cholesky_distributed
  130. endif
  131. ########################
  132. # Scatter Gather #
  133. ########################
  134. examplebin_PROGRAMS += \
  135. examples/scatter_gather/mpi_scatter_gather
  136. examples_scatter_gather_mpi_scatter_gather_LDADD = \
  137. libstarpumpi.la
  138. check_PROGRAMS += \
  139. examples/scatter_gather/mpi_scatter_gather
  140. ########################
  141. # Unit testcases #
  142. ########################
  143. check_PROGRAMS += \
  144. tests/pingpong \
  145. tests/mpi_test \
  146. tests/mpi_isend \
  147. tests/mpi_irecv \
  148. tests/mpi_isend_detached \
  149. tests/mpi_irecv_detached \
  150. tests/mpi_detached_tag \
  151. tests/ring \
  152. tests/ring_async \
  153. tests/ring_async_implicit \
  154. tests/block_interface \
  155. tests/block_interface_pinned \
  156. tests/insert_task \
  157. tests/insert_task_cache \
  158. tests/insert_task_block \
  159. tests/insert_task_owner \
  160. tests/insert_task_owner2 \
  161. tests/insert_task_owner_data \
  162. tests/multiple_send
  163. noinst_PROGRAMS = \
  164. tests/pingpong \
  165. tests/mpi_test \
  166. tests/mpi_isend \
  167. tests/mpi_irecv \
  168. tests/mpi_isend_detached \
  169. tests/mpi_irecv_detached \
  170. tests/mpi_detached_tag \
  171. tests/ring \
  172. tests/ring_async \
  173. tests/ring_async_implicit \
  174. tests/block_interface \
  175. tests/block_interface_pinned \
  176. tests/insert_task \
  177. tests/insert_task_cache \
  178. tests/insert_task_block \
  179. tests/insert_task_owner \
  180. tests/insert_task_owner2 \
  181. tests/insert_task_owner_data \
  182. tests/multiple_send
  183. tests_mpi_isend_LDADD = \
  184. libstarpumpi.la
  185. tests_mpi_irecv_LDADD = \
  186. libstarpumpi.la
  187. tests_mpi_isend_detached_LDADD = \
  188. libstarpumpi.la
  189. tests_mpi_irecv_detached_LDADD = \
  190. libstarpumpi.la
  191. tests_mpi_detached_tag_LDADD = \
  192. libstarpumpi.la
  193. tests_pingpong_LDADD = \
  194. libstarpumpi.la
  195. tests_mpi_test_LDADD = \
  196. libstarpumpi.la
  197. tests_ring_LDADD = \
  198. libstarpumpi.la
  199. tests_ring_async_LDADD = \
  200. libstarpumpi.la
  201. tests_ring_async_implicit_LDADD = \
  202. libstarpumpi.la
  203. tests_block_interface_LDADD = \
  204. libstarpumpi.la
  205. tests_block_interface_pinned_LDADD = \
  206. libstarpumpi.la
  207. tests_insert_task_LDADD = \
  208. libstarpumpi.la
  209. tests_insert_task_cache_LDADD = \
  210. libstarpumpi.la
  211. tests_insert_task_block_LDADD = \
  212. libstarpumpi.la
  213. tests_insert_task_owner_LDADD = \
  214. libstarpumpi.la
  215. tests_insert_task_owner2_LDADD = \
  216. libstarpumpi.la
  217. tests_insert_task_owner_data_LDADD = \
  218. libstarpumpi.la
  219. tests_multiple_send_LDADD = \
  220. libstarpumpi.la
  221. tests_ring_SOURCES = tests/ring.c
  222. tests_ring_async_SOURCES = tests/ring_async.c
  223. tests_ring_async_implicit_SOURCES = tests/ring_async_implicit.c
  224. if STARPU_USE_CUDA
  225. tests_ring_SOURCES += tests/ring_kernel.cu
  226. tests_ring_async_SOURCES += tests/ring_kernel.cu
  227. tests_ring_async_implicit_SOURCES += tests/ring_kernel.cu
  228. endif