Makefile.am 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  4. #
  5. # StarPU 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. # StarPU 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. TESTS =
  16. examplebindir = $(libdir)/starpu/plugin
  17. if STARPU_USE_CPU
  18. if STARPU_HAVE_WINDOWS
  19. check_PROGRAMS = $(TESTS)
  20. else
  21. check_PROGRAMS = $(LOADER) $(TESTS)
  22. endif
  23. if !STARPU_HAVE_WINDOWS
  24. ## test loader program
  25. LOADER = loader
  26. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  27. LOADER_BIN = $(abs_top_builddir)/examples/$(LOADER)
  28. loader_SOURCES = ../../tests/loader.c
  29. if STARPU_HAVE_AM111
  30. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  31. LOG_COMPILER = $(LOADER_BIN)
  32. else
  33. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  34. endif
  35. endif
  36. examplebin_PROGRAMS = \
  37. hello-starpu \
  38. matrix-mult \
  39. stencil5 \
  40. vector_scal/vector_scal
  41. #if !NO_BLAS_LIB
  42. #examplebin_PROGRAMS += \
  43. # cholesky/cholesky
  44. #endif !NO_BLAS_LIB
  45. endif STARPU_USE_CPU
  46. AM_LDFLAGS = $(top_builddir)/src/@LIBSTARPU_LINK@
  47. AM_LDFLAGS += $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS)
  48. AM_CPPFLAGS = \
  49. -I$(top_srcdir)/include \
  50. -I$(top_srcdir)/examples \
  51. $(STARPU_OPENCL_CPPFLAGS) $(STARPU_CUDA_CPPFLAGS)
  52. AM_CFLAGS = \
  53. -fplugin="$(builddir)/../src/.libs/starpu.so" \
  54. -fplugin-arg-starpu-include-dir="$(top_srcdir)/include" \
  55. -fplugin-arg-starpu-verbose \
  56. -Wall
  57. #noinst_HEADERS = \
  58. # cholesky/cholesky.h \
  59. # cholesky/cholesky_kernels.h
  60. #if !NO_BLAS_LIB
  61. #cholesky_cholesky_SOURCES = \
  62. # cholesky/cholesky.c \
  63. # cholesky/cholesky_models.c \
  64. # cholesky/cholesky_kernels.c \
  65. # $(top_srcdir)/examples/common/blas.c
  66. #
  67. #cholesky_cholesky_LDADD = \
  68. # $(STARPU_BLAS_LDFLAGS)
  69. #endif
  70. vector_scal_vector_scal_SOURCES = vector_scal/vector_scal.c
  71. if STARPU_USE_CUDA
  72. vector_scal_vector_scal_SOURCES += vector_scal/vector_scal_cuda.cu
  73. .cu.o:
  74. $(NVCC) $< -c -o $@ $(NVCCFLAGS) \
  75. -I$(top_builddir)/include -I$(top_srcdir)/include
  76. else !STARPU_USE_CUDA
  77. EXTRA_DIST = vector_scal/vector_scal_cuda.cu
  78. endif
  79. TESTS += $(examplebin_PROGRAMS)
  80. showcheck:
  81. -cat $(TEST_LOGS) /dev/null
  82. for i in $(SUBDIRS) ; do \
  83. make -C $$i showcheck ; \
  84. done