Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.h \
  32. starpu_mpi_datatype.h
  33. libstarpumpi_la_SOURCES = \
  34. starpu_mpi.c \
  35. starpu_mpi_datatype.c
  36. TESTS = $(check_PROGRAMS)
  37. check_PROGRAMS =
  38. check_PROGRAMS += \
  39. tests/pingpong \
  40. tests/mpi_isend \
  41. tests/mpi_irecv \
  42. tests/ring \
  43. tests/ring_async \
  44. tests/block_interface \
  45. tests/block_interface_pinned
  46. tests_mpi_isend_LDADD = \
  47. libstarpumpi.la
  48. tests_mpi_isend_SOURCES = \
  49. tests/mpi_isend.c
  50. tests_mpi_irecv_LDADD = \
  51. libstarpumpi.la
  52. tests_mpi_irecv_SOURCES = \
  53. tests/mpi_irecv.c
  54. tests_pingpong_LDADD = \
  55. libstarpumpi.la
  56. tests_pingpong_SOURCES = \
  57. tests/pingpong.c
  58. tests_ring_LDADD = \
  59. libstarpumpi.la
  60. tests_ring_SOURCES = \
  61. tests/ring.c
  62. tests_ring_async_LDADD = \
  63. libstarpumpi.la
  64. tests_ring_async_SOURCES = \
  65. tests/ring_async.c
  66. tests_block_interface_LDADD = \
  67. libstarpumpi.la
  68. tests_block_interface_SOURCES = \
  69. tests/block_interface.c
  70. tests_block_interface_pinned_LDADD = \
  71. libstarpumpi.la
  72. tests_block_interface_pinned_SOURCES = \
  73. tests/block_interface_pinned.c
  74. if USE_CUDA
  75. tests_ring_SOURCES += tests/ring_kernel.cu
  76. tests_ring_async_SOURCES += tests/ring_kernel.cu
  77. endif