Makefile.am 2.9 KB

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