Makefile.am 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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/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
  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)
  49. LIBS = $(top_builddir)/src/libstarpu.la @LIBS@ $(FXT_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. starpu_mpi_collective.c
  66. examplebin_PROGRAMS += \
  67. examples/stencil/stencil5
  68. examples_stencil_stencil5_LDADD = \
  69. libstarpumpi.la
  70. ##################
  71. # MPI LU example #
  72. ##################
  73. if !NO_BLAS_LIB
  74. examplebin_PROGRAMS += \
  75. examples/mpi_lu/plu_example_float \
  76. examples/mpi_lu/plu_example_double
  77. examples_mpi_lu_plu_example_float_LDADD = \
  78. libstarpumpi.la \
  79. $(STARPU_LIBNUMA_LDFLAGS) \
  80. $(STARPU_BLAS_LDFLAGS)
  81. examples_mpi_lu_plu_example_float_SOURCES = \
  82. examples/mpi_lu/plu_example_float.c \
  83. examples/mpi_lu/plu_solve_float.c \
  84. examples/mpi_lu/pslu_kernels.c \
  85. examples/mpi_lu/pslu.c \
  86. $(top_srcdir)/examples/common/blas.c
  87. examples_mpi_lu_plu_example_double_LDADD = \
  88. libstarpumpi.la \
  89. $(STARPU_LIBNUMA_LDFLAGS) \
  90. $(STARPU_BLAS_LDFLAGS)
  91. examples_mpi_lu_plu_example_double_SOURCES = \
  92. examples/mpi_lu/plu_example_double.c \
  93. examples/mpi_lu/plu_solve_double.c \
  94. examples/mpi_lu/pdlu_kernels.c \
  95. examples/mpi_lu/pdlu.c \
  96. $(top_srcdir)/examples/common/blas.c
  97. endif
  98. ########################
  99. # MPI Cholesky example #
  100. ########################
  101. if !NO_BLAS_LIB
  102. examplebin_PROGRAMS += \
  103. examples/cholesky/mpi_cholesky
  104. examples_cholesky_mpi_cholesky_SOURCES = \
  105. examples/cholesky/mpi_cholesky.c \
  106. examples/cholesky/mpi_cholesky_models.c \
  107. examples/cholesky/mpi_cholesky_kernels.c \
  108. $(top_srcdir)/examples/common/blas.c
  109. examples_cholesky_mpi_cholesky_LDADD = \
  110. libstarpumpi.la \
  111. $(STARPU_BLAS_LDFLAGS)
  112. endif
  113. ########################
  114. # Scatter Gather #
  115. ########################
  116. examplebin_PROGRAMS += \
  117. examples/scatter_gather/mpi_scatter_gather
  118. examples_scatter_gather_mpi_scatter_gather_LDADD = \
  119. libstarpumpi.la
  120. ########################
  121. # Unit testcases #
  122. ########################
  123. check_PROGRAMS += \
  124. tests/pingpong \
  125. tests/mpi_test \
  126. tests/mpi_isend \
  127. tests/mpi_irecv \
  128. tests/mpi_isend_detached \
  129. tests/mpi_irecv_detached \
  130. tests/mpi_detached_tag \
  131. tests/ring \
  132. tests/ring_async \
  133. tests/ring_async_implicit \
  134. tests/block_interface \
  135. tests/block_interface_pinned \
  136. tests/insert_task \
  137. tests/insert_task_cache \
  138. tests/insert_task_block \
  139. tests/insert_task_owner \
  140. tests/insert_task_owner2 \
  141. tests/insert_task_owner_data \
  142. tests/multiple_send
  143. testbin_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. tests_mpi_isend_LDADD = \
  164. libstarpumpi.la
  165. tests_mpi_irecv_LDADD = \
  166. libstarpumpi.la
  167. tests_mpi_isend_detached_LDADD = \
  168. libstarpumpi.la
  169. tests_mpi_irecv_detached_LDADD = \
  170. libstarpumpi.la
  171. tests_mpi_detached_tag_LDADD = \
  172. libstarpumpi.la
  173. tests_pingpong_LDADD = \
  174. libstarpumpi.la
  175. tests_mpi_test_LDADD = \
  176. libstarpumpi.la
  177. tests_ring_LDADD = \
  178. libstarpumpi.la
  179. tests_ring_async_LDADD = \
  180. libstarpumpi.la
  181. tests_ring_async_implicit_LDADD = \
  182. libstarpumpi.la
  183. tests_block_interface_LDADD = \
  184. libstarpumpi.la
  185. tests_block_interface_pinned_LDADD = \
  186. libstarpumpi.la
  187. tests_insert_task_LDADD = \
  188. libstarpumpi.la
  189. tests_insert_task_cache_LDADD = \
  190. libstarpumpi.la
  191. tests_insert_task_block_LDADD = \
  192. libstarpumpi.la
  193. tests_insert_task_owner_LDADD = \
  194. libstarpumpi.la
  195. tests_insert_task_owner2_LDADD = \
  196. libstarpumpi.la
  197. tests_insert_task_owner_data_LDADD = \
  198. libstarpumpi.la
  199. tests_multiple_send_LDADD = \
  200. libstarpumpi.la
  201. tests_ring_SOURCES = tests/ring.c
  202. tests_ring_async_SOURCES = tests/ring_async.c
  203. tests_ring_async_implicit_SOURCES = tests/ring_async_implicit.c
  204. if STARPU_USE_CUDA
  205. tests_ring_SOURCES += tests/ring_kernel.cu
  206. tests_ring_async_SOURCES += tests/ring_kernel.cu
  207. tests_ring_async_implicit_SOURCES += tests/ring_kernel.cu
  208. endif