Makefile.am 2.3 KB

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