Makefile.am 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2010 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/mpi/examples/
  36. testbindir = $(libdir)/starpu/mpi/tests/
  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 $(HWLOC_CFLAGS)
  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 = $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
  49. LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @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.la
  54. noinst_HEADERS = \
  55. starpu_mpi_private.h \
  56. starpu_mpi_fxt.h
  57. include_HEADERS = \
  58. starpu_mpi.h \
  59. starpu_mpi_datatype.h
  60. libstarpumpi_la_SOURCES = \
  61. starpu_mpi.c \
  62. starpu_mpi_helper.c \
  63. starpu_mpi_datatype.c \
  64. starpu_mpi_insert_task.c
  65. examplebin_PROGRAMS += \
  66. examples/stencil/stencil5
  67. examples_stencil_stencil5_LDADD = \
  68. libstarpumpi.la
  69. examples_stencil_stencil5_SOURCES = \
  70. examples/stencil/stencil5.c
  71. ##################
  72. # MPI LU example #
  73. ##################
  74. if !NO_BLAS_LIB
  75. examplebin_PROGRAMS += \
  76. examples/mpi_lu/plu_example_float \
  77. examples/mpi_lu/plu_example_double
  78. examples_mpi_lu_plu_example_float_LDADD = \
  79. libstarpumpi.la
  80. examples_mpi_lu_plu_example_float_SOURCES = \
  81. examples/mpi_lu/plu_example_float.c \
  82. examples/mpi_lu/plu_solve_float.c \
  83. examples/mpi_lu/pslu_kernels.c \
  84. examples/mpi_lu/pslu.c \
  85. $(top_srcdir)/examples/common/blas.c
  86. examples_mpi_lu_plu_example_double_LDADD = \
  87. libstarpumpi.la
  88. examples_mpi_lu_plu_example_double_SOURCES = \
  89. examples/mpi_lu/plu_example_double.c \
  90. examples/mpi_lu/plu_solve_double.c \
  91. examples/mpi_lu/pdlu_kernels.c \
  92. examples/mpi_lu/pdlu.c \
  93. $(top_srcdir)/examples/common/blas.c
  94. endif
  95. ########################
  96. # MPI Cholesky example #
  97. ########################
  98. if !NO_BLAS_LIB
  99. examplebin_PROGRAMS += \
  100. examples/cholesky/mpi_cholesky
  101. examples_cholesky_mpi_cholesky_SOURCES = \
  102. examples/cholesky/mpi_cholesky.c \
  103. examples/cholesky/mpi_cholesky_models.c \
  104. examples/cholesky/mpi_cholesky_kernels.c \
  105. $(top_srcdir)/examples/common/blas.c
  106. examples_cholesky_mpi_cholesky_LDADD = \
  107. libstarpumpi.la
  108. endif
  109. check_PROGRAMS += \
  110. tests/pingpong \
  111. tests/mpi_test \
  112. tests/mpi_isend \
  113. tests/mpi_irecv \
  114. tests/mpi_isend_detached \
  115. tests/mpi_irecv_detached \
  116. tests/mpi_detached_tag \
  117. tests/ring \
  118. tests/ring_async \
  119. tests/ring_async_implicit \
  120. tests/block_interface \
  121. tests/block_interface_pinned \
  122. tests/insert_task \
  123. tests/insert_task_cache \
  124. tests/insert_task_block \
  125. tests/insert_task_owner \
  126. tests/insert_task_owner2 \
  127. tests/multiple_send
  128. testbin_PROGRAMS = \
  129. tests/pingpong \
  130. tests/mpi_test \
  131. tests/mpi_isend \
  132. tests/mpi_irecv \
  133. tests/mpi_isend_detached \
  134. tests/mpi_irecv_detached \
  135. tests/mpi_detached_tag \
  136. tests/ring \
  137. tests/ring_async \
  138. tests/ring_async_implicit \
  139. tests/block_interface \
  140. tests/block_interface_pinned \
  141. tests/insert_task \
  142. tests/insert_task_cache \
  143. tests/insert_task_block \
  144. tests/insert_task_owner \
  145. tests/insert_task_owner2 \
  146. tests/multiple_send
  147. tests_mpi_isend_LDADD = \
  148. libstarpumpi.la
  149. tests_mpi_isend_SOURCES = \
  150. tests/mpi_isend.c
  151. tests_mpi_irecv_LDADD = \
  152. libstarpumpi.la
  153. tests_mpi_irecv_SOURCES = \
  154. tests/mpi_irecv.c
  155. tests_mpi_isend_detached_LDADD = \
  156. libstarpumpi.la
  157. tests_mpi_isend_detached_SOURCES = \
  158. tests/mpi_isend_detached.c
  159. tests_mpi_irecv_detached_LDADD = \
  160. libstarpumpi.la
  161. tests_mpi_irecv_detached_SOURCES = \
  162. tests/mpi_irecv_detached.c
  163. tests_mpi_detached_tag_LDADD = \
  164. libstarpumpi.la
  165. tests_mpi_detached_tag_SOURCES = \
  166. tests/mpi_detached_tag.c
  167. tests_pingpong_LDADD = \
  168. libstarpumpi.la
  169. tests_pingpong_SOURCES = \
  170. tests/pingpong.c
  171. tests_mpi_test_LDADD = \
  172. libstarpumpi.la
  173. tests_mpi_test_SOURCES = \
  174. tests/mpi_test.c
  175. tests_ring_LDADD = \
  176. libstarpumpi.la
  177. tests_ring_SOURCES = \
  178. tests/ring.c
  179. tests_ring_async_LDADD = \
  180. libstarpumpi.la
  181. tests_ring_async_SOURCES = \
  182. tests/ring_async.c
  183. tests_ring_async_implicit_LDADD = \
  184. libstarpumpi.la
  185. tests_ring_async_implicit_SOURCES = \
  186. tests/ring_async_implicit.c
  187. tests_block_interface_LDADD = \
  188. libstarpumpi.la
  189. tests_block_interface_SOURCES = \
  190. tests/block_interface.c
  191. tests_block_interface_pinned_LDADD = \
  192. libstarpumpi.la
  193. tests_block_interface_pinned_SOURCES = \
  194. tests/block_interface_pinned.c
  195. tests_insert_task_LDADD = \
  196. libstarpumpi.la
  197. tests_insert_task_SOURCES = \
  198. tests/insert_task.c
  199. tests_insert_task_cache_LDADD = \
  200. libstarpumpi.la
  201. tests_insert_task_cache_SOURCES = \
  202. tests/insert_task_cache.c
  203. tests_insert_task_block_LDADD = \
  204. libstarpumpi.la
  205. tests_insert_task_block_SOURCES = \
  206. tests/insert_task_block.c
  207. tests_insert_task_owner_LDADD = \
  208. libstarpumpi.la
  209. tests_insert_task_owner_SOURCES = \
  210. tests/insert_task_owner.c
  211. tests_insert_task_owner2_LDADD = \
  212. libstarpumpi.la
  213. tests_insert_task_owner2_SOURCES = \
  214. tests/insert_task_owner2.c
  215. tests_multiple_send_LDADD = \
  216. libstarpumpi.la
  217. tests_multiple_send_SOURCES = \
  218. tests/multiple_send.c
  219. if STARPU_USE_CUDA
  220. tests_ring_SOURCES += tests/ring_kernel.cu
  221. tests_ring_async_SOURCES += tests/ring_kernel.cu
  222. tests_ring_async_implicit_SOURCES += tests/ring_kernel.cu
  223. endif