Makefile.am 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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/block_interface \
  82. tests/block_interface_pinned
  83. tests_mpi_isend_LDADD = \
  84. libstarpumpi.la
  85. tests_mpi_isend_SOURCES = \
  86. tests/mpi_isend.c
  87. tests_mpi_irecv_LDADD = \
  88. libstarpumpi.la
  89. tests_mpi_irecv_SOURCES = \
  90. tests/mpi_irecv.c
  91. tests_mpi_isend_detached_LDADD = \
  92. libstarpumpi.la
  93. tests_mpi_isend_detached_SOURCES = \
  94. tests/mpi_isend_detached.c
  95. tests_mpi_irecv_detached_LDADD = \
  96. libstarpumpi.la
  97. tests_mpi_irecv_detached_SOURCES = \
  98. tests/mpi_irecv_detached.c
  99. tests_mpi_detached_tag_LDADD = \
  100. libstarpumpi.la
  101. tests_mpi_detached_tag_SOURCES = \
  102. tests/mpi_detached_tag.c
  103. tests_pingpong_LDADD = \
  104. libstarpumpi.la
  105. tests_pingpong_SOURCES = \
  106. tests/pingpong.c
  107. tests_mpi_test_LDADD = \
  108. libstarpumpi.la
  109. tests_mpi_test_SOURCES = \
  110. tests/mpi_test.c
  111. tests_ring_LDADD = \
  112. libstarpumpi.la
  113. tests_ring_SOURCES = \
  114. tests/ring.c
  115. tests_ring_async_LDADD = \
  116. libstarpumpi.la
  117. tests_ring_async_SOURCES = \
  118. tests/ring_async.c
  119. tests_block_interface_LDADD = \
  120. libstarpumpi.la
  121. tests_block_interface_SOURCES = \
  122. tests/block_interface.c
  123. tests_block_interface_pinned_LDADD = \
  124. libstarpumpi.la
  125. tests_block_interface_pinned_SOURCES = \
  126. tests/block_interface_pinned.c
  127. if STARPU_USE_CUDA
  128. tests_ring_SOURCES += tests/ring_kernel.cu
  129. tests_ring_async_SOURCES += tests/ring_kernel.cu
  130. endif