Makefile.am 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. if USE_CUDA
  18. # TODO define NVCCFLAGS
  19. NVCC ?= nvcc
  20. .cu.cubin:
  21. $(MKDIR_P) `dirname $@`
  22. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  23. .cu.o:
  24. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I$(top_srcdir)/include/
  25. endif
  26. LIBS = $(top_builddir)/src/libstarpu.la @LIBS@
  27. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/mpi/ -I$(top_srcdir)/src/
  28. lib_LTLIBRARIES = libstarpumpi.la
  29. libstarpumpi_la_LIBADD = $(top_builddir)/src/libstarpu.la
  30. noinst_HEADERS = \
  31. starpu_mpi_private.h
  32. include_HEADERS = \
  33. starpu_mpi.h \
  34. starpu_mpi_datatype.h
  35. libstarpumpi_la_SOURCES = \
  36. starpu_mpi.c \
  37. starpu_mpi_helper.c \
  38. starpu_mpi_datatype.c
  39. mpiexamplebindir=$(libdir)/starpu/mpi/
  40. mpiexamplebin_PROGRAMS = \
  41. tests/pingpong \
  42. tests/mpi_test \
  43. tests/mpi_isend \
  44. tests/mpi_irecv \
  45. tests/mpi_isend_detached \
  46. tests/mpi_irecv_detached \
  47. tests/mpi_detached_tag \
  48. tests/ring \
  49. tests/ring_async \
  50. tests/block_interface \
  51. tests/block_interface_pinned
  52. tests_mpi_isend_LDADD = \
  53. libstarpumpi.la
  54. tests_mpi_isend_SOURCES = \
  55. tests/mpi_isend.c
  56. tests_mpi_irecv_LDADD = \
  57. libstarpumpi.la
  58. tests_mpi_irecv_SOURCES = \
  59. tests/mpi_irecv.c
  60. tests_mpi_isend_detached_LDADD = \
  61. libstarpumpi.la
  62. tests_mpi_isend_detached_SOURCES = \
  63. tests/mpi_isend_detached.c
  64. tests_mpi_irecv_detached_LDADD = \
  65. libstarpumpi.la
  66. tests_mpi_irecv_detached_SOURCES = \
  67. tests/mpi_irecv_detached.c
  68. tests_mpi_detached_tag_LDADD = \
  69. libstarpumpi.la
  70. tests_mpi_detached_tag_SOURCES = \
  71. tests/mpi_detached_tag.c
  72. tests_pingpong_LDADD = \
  73. libstarpumpi.la
  74. tests_pingpong_SOURCES = \
  75. tests/pingpong.c
  76. tests_mpi_test_LDADD = \
  77. libstarpumpi.la
  78. tests_mpi_test_SOURCES = \
  79. tests/mpi_test.c
  80. tests_ring_LDADD = \
  81. libstarpumpi.la
  82. tests_ring_SOURCES = \
  83. tests/ring.c
  84. tests_ring_async_LDADD = \
  85. libstarpumpi.la
  86. tests_ring_async_SOURCES = \
  87. tests/ring_async.c
  88. tests_block_interface_LDADD = \
  89. libstarpumpi.la
  90. tests_block_interface_SOURCES = \
  91. tests/block_interface.c
  92. tests_block_interface_pinned_LDADD = \
  93. libstarpumpi.la
  94. tests_block_interface_pinned_SOURCES = \
  95. tests/block_interface_pinned.c
  96. if USE_CUDA
  97. tests_ring_SOURCES += tests/ring_kernel.cu
  98. tests_ring_async_SOURCES += tests/ring_kernel.cu
  99. endif