Makefile.am 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_SOURCES = starpu_mpi.c
  30. libstarpumpi_la_LIBADD = $(top_builddir)/src/libstarpu.la
  31. TESTS = $(check_PROGRAMS)
  32. check_PROGRAMS =
  33. check_PROGRAMS += \
  34. tests/pingpong \
  35. tests/ring
  36. tests_pingpong_LDADD = \
  37. libstarpumpi.la
  38. tests_pingpong_SOURCES = \
  39. tests/pingpong.c
  40. tests_ring_LDADD = \
  41. libstarpumpi.la
  42. tests_ring_SOURCES = \
  43. tests/ring.c
  44. if USE_CUDA
  45. tests_ring_SOURCES += tests/ring_kernel.cu
  46. endif