Makefile.am 4.1 KB

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