Makefile.am 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. include_HEADERS = \
  40. starpu_mpi.h \
  41. starpu_mpi_datatype.h
  42. libstarpumpi_la_SOURCES = \
  43. starpu_mpi.c \
  44. starpu_mpi_helper.c \
  45. starpu_mpi_datatype.c
  46. ##################
  47. # MPI LU example #
  48. ##################
  49. if !NO_BLAS_LIB
  50. examplebin_PROGRAMS += \
  51. examples/mpi_lu/plu_example_float \
  52. examples/mpi_lu/plu_example_double
  53. examples_mpi_lu_plu_example_float_LDADD = \
  54. libstarpumpi.la
  55. examples_mpi_lu_plu_example_float_SOURCES = \
  56. examples/mpi_lu/plu_example_float.c \
  57. examples/mpi_lu/plu_solve_float.c \
  58. examples/mpi_lu/pslu_kernels.c \
  59. examples/mpi_lu/pslu.c \
  60. $(top_srcdir)/examples/common/blas.c
  61. examples_mpi_lu_plu_example_double_LDADD = \
  62. libstarpumpi.la
  63. examples_mpi_lu_plu_example_double_SOURCES = \
  64. examples/mpi_lu/plu_example_double.c \
  65. examples/mpi_lu/plu_solve_double.c \
  66. examples/mpi_lu/pdlu_kernels.c \
  67. examples/mpi_lu/pdlu.c \
  68. $(top_srcdir)/examples/common/blas.c
  69. endif
  70. mpiexamplebin_PROGRAMS = \
  71. tests/pingpong \
  72. tests/mpi_test \
  73. tests/mpi_isend \
  74. tests/mpi_irecv \
  75. tests/mpi_isend_detached \
  76. tests/mpi_irecv_detached \
  77. tests/mpi_detached_tag \
  78. tests/ring \
  79. tests/ring_async \
  80. tests/block_interface \
  81. tests/block_interface_pinned
  82. tests_mpi_isend_LDADD = \
  83. libstarpumpi.la
  84. tests_mpi_isend_SOURCES = \
  85. tests/mpi_isend.c
  86. tests_mpi_irecv_LDADD = \
  87. libstarpumpi.la
  88. tests_mpi_irecv_SOURCES = \
  89. tests/mpi_irecv.c
  90. tests_mpi_isend_detached_LDADD = \
  91. libstarpumpi.la
  92. tests_mpi_isend_detached_SOURCES = \
  93. tests/mpi_isend_detached.c
  94. tests_mpi_irecv_detached_LDADD = \
  95. libstarpumpi.la
  96. tests_mpi_irecv_detached_SOURCES = \
  97. tests/mpi_irecv_detached.c
  98. tests_mpi_detached_tag_LDADD = \
  99. libstarpumpi.la
  100. tests_mpi_detached_tag_SOURCES = \
  101. tests/mpi_detached_tag.c
  102. tests_pingpong_LDADD = \
  103. libstarpumpi.la
  104. tests_pingpong_SOURCES = \
  105. tests/pingpong.c
  106. tests_mpi_test_LDADD = \
  107. libstarpumpi.la
  108. tests_mpi_test_SOURCES = \
  109. tests/mpi_test.c
  110. tests_ring_LDADD = \
  111. libstarpumpi.la
  112. tests_ring_SOURCES = \
  113. tests/ring.c
  114. tests_ring_async_LDADD = \
  115. libstarpumpi.la
  116. tests_ring_async_SOURCES = \
  117. tests/ring_async.c
  118. tests_block_interface_LDADD = \
  119. libstarpumpi.la
  120. tests_block_interface_SOURCES = \
  121. tests/block_interface.c
  122. tests_block_interface_pinned_LDADD = \
  123. libstarpumpi.la
  124. tests_block_interface_pinned_SOURCES = \
  125. tests/block_interface_pinned.c
  126. if STARPU_USE_CUDA
  127. tests_ring_SOURCES += tests/ring_kernel.cu
  128. tests_ring_async_SOURCES += tests/ring_kernel.cu
  129. endif