Makefile.am 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. TESTS = $(check_PROGRAMS)
  18. check_PROGRAMS =
  19. BUILT_SOURCES =
  20. CLEANFILES = *.gcno *.gcda *.linkinfo
  21. EXTRA_DIST = \
  22. examples/mpi_lu/float.h \
  23. examples/mpi_lu/double.h \
  24. examples/mpi_lu/plu_example.c \
  25. examples/mpi_lu/plu_solve.c \
  26. examples/mpi_lu/pxlu.h \
  27. examples/mpi_lu/pxlu.c \
  28. examples/mpi_lu/pxlu_kernels.h \
  29. examples/mpi_lu/pxlu_kernels.c
  30. examplebindir = $(libdir)/starpu/mpi/examples/
  31. mpiexamplebindir=$(libdir)/starpu/mpi/
  32. examplebin_PROGRAMS =
  33. if STARPU_USE_CUDA
  34. # TODO define NVCCFLAGS
  35. NVCC ?= nvcc
  36. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include $(HWLOC_CFLAGS)
  37. .cu.cubin:
  38. $(MKDIR_P) `dirname $@`
  39. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  40. .cu.o:
  41. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I$(top_srcdir)/include/ -I$(top_builddir)/include/
  42. endif
  43. AM_CFLAGS = $(HWLOC_CFLAGS)
  44. LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
  45. 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
  46. lib_LTLIBRARIES = libstarpumpi.la
  47. libstarpumpi_la_LIBADD = $(top_builddir)/src/libstarpu.la
  48. noinst_HEADERS = \
  49. starpu_mpi_private.h \
  50. starpu_mpi_fxt.h
  51. include_HEADERS = \
  52. starpu_mpi.h \
  53. starpu_mpi_datatype.h
  54. libstarpumpi_la_SOURCES = \
  55. starpu_mpi.c \
  56. starpu_mpi_helper.c \
  57. starpu_mpi_datatype.c
  58. ##################
  59. # MPI LU example #
  60. ##################
  61. if !NO_BLAS_LIB
  62. examplebin_PROGRAMS += \
  63. examples/mpi_lu/plu_example_float \
  64. examples/mpi_lu/plu_example_double
  65. examples_mpi_lu_plu_example_float_LDADD = \
  66. libstarpumpi.la
  67. examples_mpi_lu_plu_example_float_SOURCES = \
  68. examples/mpi_lu/plu_example_float.c \
  69. examples/mpi_lu/plu_solve_float.c \
  70. examples/mpi_lu/pslu_kernels.c \
  71. examples/mpi_lu/pslu.c \
  72. $(top_srcdir)/examples/common/blas.c
  73. examples_mpi_lu_plu_example_double_LDADD = \
  74. libstarpumpi.la
  75. examples_mpi_lu_plu_example_double_SOURCES = \
  76. examples/mpi_lu/plu_example_double.c \
  77. examples/mpi_lu/plu_solve_double.c \
  78. examples/mpi_lu/pdlu_kernels.c \
  79. examples/mpi_lu/pdlu.c \
  80. $(top_srcdir)/examples/common/blas.c
  81. endif
  82. mpiexamplebin_PROGRAMS = \
  83. tests/pingpong \
  84. tests/mpi_test \
  85. tests/mpi_isend \
  86. tests/mpi_irecv \
  87. tests/mpi_isend_detached \
  88. tests/mpi_irecv_detached \
  89. tests/mpi_detached_tag \
  90. tests/ring \
  91. tests/ring_async \
  92. tests/ring_async_implicit \
  93. tests/block_interface \
  94. tests/block_interface_pinned
  95. tests_mpi_isend_LDADD = \
  96. libstarpumpi.la
  97. tests_mpi_isend_SOURCES = \
  98. tests/mpi_isend.c
  99. tests_mpi_irecv_LDADD = \
  100. libstarpumpi.la
  101. tests_mpi_irecv_SOURCES = \
  102. tests/mpi_irecv.c
  103. tests_mpi_isend_detached_LDADD = \
  104. libstarpumpi.la
  105. tests_mpi_isend_detached_SOURCES = \
  106. tests/mpi_isend_detached.c
  107. tests_mpi_irecv_detached_LDADD = \
  108. libstarpumpi.la
  109. tests_mpi_irecv_detached_SOURCES = \
  110. tests/mpi_irecv_detached.c
  111. tests_mpi_detached_tag_LDADD = \
  112. libstarpumpi.la
  113. tests_mpi_detached_tag_SOURCES = \
  114. tests/mpi_detached_tag.c
  115. tests_pingpong_LDADD = \
  116. libstarpumpi.la
  117. tests_pingpong_SOURCES = \
  118. tests/pingpong.c
  119. tests_mpi_test_LDADD = \
  120. libstarpumpi.la
  121. tests_mpi_test_SOURCES = \
  122. tests/mpi_test.c
  123. tests_ring_LDADD = \
  124. libstarpumpi.la
  125. tests_ring_SOURCES = \
  126. tests/ring.c
  127. tests_ring_async_LDADD = \
  128. libstarpumpi.la
  129. tests_ring_async_SOURCES = \
  130. tests/ring_async.c
  131. tests_ring_async_implicit_LDADD = \
  132. libstarpumpi.la
  133. tests_ring_async_implicit_SOURCES = \
  134. tests/ring_async_implicit.c
  135. tests_block_interface_LDADD = \
  136. libstarpumpi.la
  137. tests_block_interface_SOURCES = \
  138. tests/block_interface.c
  139. tests_block_interface_pinned_LDADD = \
  140. libstarpumpi.la
  141. tests_block_interface_pinned_SOURCES = \
  142. tests/block_interface_pinned.c
  143. if STARPU_USE_CUDA
  144. tests_ring_SOURCES += tests/ring_kernel.cu
  145. tests_ring_async_SOURCES += tests/ring_kernel.cu
  146. tests_ring_async_implicit_SOURCES += tests/ring_kernel.cu
  147. endif