Makefile.am 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. ##################
  62. # MPI LU example #
  63. ##################
  64. if !NO_BLAS_LIB
  65. examplebin_PROGRAMS += \
  66. examples/mpi_lu/plu_example_float \
  67. examples/mpi_lu/plu_example_double
  68. examples_mpi_lu_plu_example_float_LDADD = \
  69. libstarpumpi.la
  70. examples_mpi_lu_plu_example_float_SOURCES = \
  71. examples/mpi_lu/plu_example_float.c \
  72. examples/mpi_lu/plu_solve_float.c \
  73. examples/mpi_lu/pslu_kernels.c \
  74. examples/mpi_lu/pslu.c \
  75. $(top_srcdir)/examples/common/blas.c
  76. examples_mpi_lu_plu_example_double_LDADD = \
  77. libstarpumpi.la
  78. examples_mpi_lu_plu_example_double_SOURCES = \
  79. examples/mpi_lu/plu_example_double.c \
  80. examples/mpi_lu/plu_solve_double.c \
  81. examples/mpi_lu/pdlu_kernels.c \
  82. examples/mpi_lu/pdlu.c \
  83. $(top_srcdir)/examples/common/blas.c
  84. endif
  85. check_PROGRAMS += \
  86. tests/pingpong \
  87. tests/mpi_test \
  88. tests/mpi_isend \
  89. tests/mpi_irecv \
  90. tests/mpi_isend_detached \
  91. tests/mpi_irecv_detached \
  92. tests/mpi_detached_tag \
  93. tests/ring \
  94. tests/ring_async \
  95. tests/ring_async_implicit \
  96. tests/block_interface \
  97. tests/block_interface_pinned
  98. testbin_PROGRAMS = \
  99. tests/pingpong \
  100. tests/mpi_test \
  101. tests/mpi_isend \
  102. tests/mpi_irecv \
  103. tests/mpi_isend_detached \
  104. tests/mpi_irecv_detached \
  105. tests/mpi_detached_tag \
  106. tests/ring \
  107. tests/ring_async \
  108. tests/ring_async_implicit \
  109. tests/block_interface \
  110. tests/block_interface_pinned
  111. tests_mpi_isend_LDADD = \
  112. libstarpumpi.la
  113. tests_mpi_isend_SOURCES = \
  114. tests/mpi_isend.c
  115. tests_mpi_irecv_LDADD = \
  116. libstarpumpi.la
  117. tests_mpi_irecv_SOURCES = \
  118. tests/mpi_irecv.c
  119. tests_mpi_isend_detached_LDADD = \
  120. libstarpumpi.la
  121. tests_mpi_isend_detached_SOURCES = \
  122. tests/mpi_isend_detached.c
  123. tests_mpi_irecv_detached_LDADD = \
  124. libstarpumpi.la
  125. tests_mpi_irecv_detached_SOURCES = \
  126. tests/mpi_irecv_detached.c
  127. tests_mpi_detached_tag_LDADD = \
  128. libstarpumpi.la
  129. tests_mpi_detached_tag_SOURCES = \
  130. tests/mpi_detached_tag.c
  131. tests_pingpong_LDADD = \
  132. libstarpumpi.la
  133. tests_pingpong_SOURCES = \
  134. tests/pingpong.c
  135. tests_mpi_test_LDADD = \
  136. libstarpumpi.la
  137. tests_mpi_test_SOURCES = \
  138. tests/mpi_test.c
  139. tests_ring_LDADD = \
  140. libstarpumpi.la
  141. tests_ring_SOURCES = \
  142. tests/ring.c
  143. tests_ring_async_LDADD = \
  144. libstarpumpi.la
  145. tests_ring_async_SOURCES = \
  146. tests/ring_async.c
  147. tests_ring_async_implicit_LDADD = \
  148. libstarpumpi.la
  149. tests_ring_async_implicit_SOURCES = \
  150. tests/ring_async_implicit.c
  151. tests_block_interface_LDADD = \
  152. libstarpumpi.la
  153. tests_block_interface_SOURCES = \
  154. tests/block_interface.c
  155. tests_block_interface_pinned_LDADD = \
  156. libstarpumpi.la
  157. tests_block_interface_pinned_SOURCES = \
  158. tests/block_interface_pinned.c
  159. if STARPU_USE_CUDA
  160. tests_ring_SOURCES += tests/ring_kernel.cu
  161. tests_ring_async_SOURCES += tests/ring_kernel.cu
  162. tests_ring_async_implicit_SOURCES += tests/ring_kernel.cu
  163. endif