Makefile.am 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. LIBS = $(top_builddir)/src/libstarpu.la $(top_builddir)/mpi/libstarpumpi.la @LIBS@
  18. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include -I$(top_srcdir)/mpi/
  19. TESTS = $(check_PROGRAMS)
  20. check_PROGRAMS =
  21. BUILT_SOURCES =
  22. CLEANFILES = *.gcno *.gcda *.linkinfo
  23. if USE_CUDA
  24. # TODO define NVCCFLAGS
  25. NVCC ?= nvcc
  26. .cu.o:
  27. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I$(top_srcdir)/include/ -I$(top_builddir)/include/
  28. endif
  29. examplebindir = $(libdir)/starpu/mpi/examples/
  30. examplebin_PROGRAMS =
  31. ##################
  32. # MPI LU example #
  33. ##################
  34. if !NO_BLAS_LIB
  35. examplebin_PROGRAMS += \
  36. mpi_lu/plu_example_float \
  37. mpi_lu/plu_example_double
  38. mpi_lu_plu_example_float_SOURCES = \
  39. mpi_lu/plu_example_float.c \
  40. mpi_lu/plu_solve_float.c \
  41. mpi_lu/pslu_kernels.c \
  42. mpi_lu/pslu.c \
  43. $(top_srcdir)/examples/common/blas.c
  44. mpi_lu_plu_example_double_SOURCES = \
  45. mpi_lu/plu_example_double.c \
  46. mpi_lu/plu_solve_double.c \
  47. mpi_lu/pdlu_kernels.c \
  48. mpi_lu/pdlu.c \
  49. $(top_srcdir)/examples/common/blas.c
  50. endif