Makefile.am 7.1 KB

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