Makefile.am 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. #
  2. # StarPU
  3. # Copyright (C) Université Bordeaux 1, CNRS 2008-2009 (see AUTHORS file)
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. #
  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. examplebindir = $(libdir)/starpu/mpi/examples/
  34. testbindir = $(libdir)/starpu/mpi/tests/
  35. examplebin_PROGRAMS =
  36. if STARPU_USE_CUDA
  37. # TODO define NVCCFLAGS
  38. NVCC ?= nvcc
  39. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include $(HWLOC_CFLAGS)
  40. .cu.cubin:
  41. $(MKDIR_P) `dirname $@`
  42. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  43. .cu.o:
  44. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I$(top_srcdir)/include/ -I$(top_builddir)/include/
  45. endif
  46. AM_CFLAGS = $(HWLOC_CFLAGS)
  47. LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
  48. 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
  49. lib_LTLIBRARIES = libstarpumpi.la
  50. libstarpumpi_la_LIBADD = $(top_builddir)/src/libstarpu.la
  51. noinst_HEADERS = \
  52. starpu_mpi_private.h \
  53. starpu_mpi_fxt.h
  54. include_HEADERS = \
  55. starpu_mpi.h \
  56. starpu_mpi_datatype.h
  57. libstarpumpi_la_SOURCES = \
  58. starpu_mpi.c \
  59. starpu_mpi_helper.c \
  60. starpu_mpi_datatype.c \
  61. starpu_mpi_insert_task.c
  62. ##################
  63. # MPI LU example #
  64. ##################
  65. if !NO_BLAS_LIB
  66. examplebin_PROGRAMS += \
  67. examples/mpi_lu/plu_example_float \
  68. examples/mpi_lu/plu_example_double
  69. examples_mpi_lu_plu_example_float_LDADD = \
  70. libstarpumpi.la
  71. examples_mpi_lu_plu_example_float_SOURCES = \
  72. examples/mpi_lu/plu_example_float.c \
  73. examples/mpi_lu/plu_solve_float.c \
  74. examples/mpi_lu/pslu_kernels.c \
  75. examples/mpi_lu/pslu.c \
  76. $(top_srcdir)/examples/common/blas.c
  77. examples_mpi_lu_plu_example_double_LDADD = \
  78. libstarpumpi.la
  79. examples_mpi_lu_plu_example_double_SOURCES = \
  80. examples/mpi_lu/plu_example_double.c \
  81. examples/mpi_lu/plu_solve_double.c \
  82. examples/mpi_lu/pdlu_kernels.c \
  83. examples/mpi_lu/pdlu.c \
  84. $(top_srcdir)/examples/common/blas.c
  85. endif
  86. check_PROGRAMS += \
  87. tests/pingpong \
  88. tests/mpi_test \
  89. tests/mpi_isend \
  90. tests/mpi_irecv \
  91. tests/mpi_isend_detached \
  92. tests/mpi_irecv_detached \
  93. tests/mpi_detached_tag \
  94. tests/ring \
  95. tests/ring_async \
  96. tests/ring_async_implicit \
  97. tests/block_interface \
  98. tests/block_interface_pinned \
  99. tests/insert_task \
  100. tests/multiple_send
  101. testbin_PROGRAMS = \
  102. tests/pingpong \
  103. tests/mpi_test \
  104. tests/mpi_isend \
  105. tests/mpi_irecv \
  106. tests/mpi_isend_detached \
  107. tests/mpi_irecv_detached \
  108. tests/mpi_detached_tag \
  109. tests/ring \
  110. tests/ring_async \
  111. tests/ring_async_implicit \
  112. tests/block_interface \
  113. tests/block_interface_pinned \
  114. tests/insert_task \
  115. tests/multiple_send
  116. tests_mpi_isend_LDADD = \
  117. libstarpumpi.la
  118. tests_mpi_isend_SOURCES = \
  119. tests/mpi_isend.c
  120. tests_mpi_irecv_LDADD = \
  121. libstarpumpi.la
  122. tests_mpi_irecv_SOURCES = \
  123. tests/mpi_irecv.c
  124. tests_mpi_isend_detached_LDADD = \
  125. libstarpumpi.la
  126. tests_mpi_isend_detached_SOURCES = \
  127. tests/mpi_isend_detached.c
  128. tests_mpi_irecv_detached_LDADD = \
  129. libstarpumpi.la
  130. tests_mpi_irecv_detached_SOURCES = \
  131. tests/mpi_irecv_detached.c
  132. tests_mpi_detached_tag_LDADD = \
  133. libstarpumpi.la
  134. tests_mpi_detached_tag_SOURCES = \
  135. tests/mpi_detached_tag.c
  136. tests_pingpong_LDADD = \
  137. libstarpumpi.la
  138. tests_pingpong_SOURCES = \
  139. tests/pingpong.c
  140. tests_mpi_test_LDADD = \
  141. libstarpumpi.la
  142. tests_mpi_test_SOURCES = \
  143. tests/mpi_test.c
  144. tests_ring_LDADD = \
  145. libstarpumpi.la
  146. tests_ring_SOURCES = \
  147. tests/ring.c
  148. tests_ring_async_LDADD = \
  149. libstarpumpi.la
  150. tests_ring_async_SOURCES = \
  151. tests/ring_async.c
  152. tests_ring_async_implicit_LDADD = \
  153. libstarpumpi.la
  154. tests_ring_async_implicit_SOURCES = \
  155. tests/ring_async_implicit.c
  156. tests_block_interface_LDADD = \
  157. libstarpumpi.la
  158. tests_block_interface_SOURCES = \
  159. tests/block_interface.c
  160. tests_block_interface_pinned_LDADD = \
  161. libstarpumpi.la
  162. tests_block_interface_pinned_SOURCES = \
  163. tests/block_interface_pinned.c
  164. tests_insert_task_LDADD = \
  165. libstarpumpi.la
  166. tests_insert_task_SOURCES = \
  167. tests/insert_task.c
  168. tests_multiple_send_LDADD = \
  169. libstarpumpi.la
  170. tests_multiple_send_SOURCES = \
  171. tests/multiple_send.c
  172. if STARPU_USE_CUDA
  173. tests_ring_SOURCES += tests/ring_kernel.cu
  174. tests_ring_async_SOURCES += tests/ring_kernel.cu
  175. tests_ring_async_implicit_SOURCES += tests/ring_kernel.cu
  176. endif