Makefile.am 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  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. #
  16. include $(top_srcdir)/starpu.mk
  17. CLEANFILES = starpu_idle_microsec.log
  18. examplebindir = $(libdir)/starpu/examples/starpufft
  19. EXTRA_DIST = \
  20. testx.c \
  21. testx_threads.c \
  22. testf_threads.c \
  23. test_threads.c
  24. noinst_PROGRAMS =
  25. check_PROGRAMS = $(STARPU_FFT_EXAMPLES)
  26. if !STARPU_HAVE_WINDOWS
  27. ## test loader program
  28. LOADER = loader
  29. loader_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_builddir)/src/
  30. LOADER_BIN = $(abs_top_builddir)/starpufft/tests/$(LOADER)
  31. loader_SOURCES = ../../tests/loader.c
  32. noinst_PROGRAMS += loader
  33. if STARPU_HAVE_AM111
  34. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  35. LOG_COMPILER = $(LOADER_BIN)
  36. else
  37. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  38. endif
  39. endif
  40. AM_CFLAGS += -Wno-unused
  41. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include -I$(top_srcdir)/starpufft/include -I$(top_srcdir)/starpufft/src $(STARPU_H_CPPFLAGS)
  42. AM_LDFLAGS = @STARPU_EXPORT_DYNAMIC@
  43. LIBS += $(top_builddir)/src/@LIBSTARPU_LINK@ ../src/libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(STARPU_EXPORTED_LIBS)
  44. LIBS += $(STARPU_CUDA_LDFLAGS)
  45. examplebin_PROGRAMS =
  46. examplebin_PROGRAMS += \
  47. testf \
  48. test
  49. STARPU_FFT_EXAMPLES = testf
  50. testf_LDADD = $(FFTWF_LIBS)
  51. # If we don't have CUDA, we assume that we have fftw available in double
  52. # precision anyway, we just want to make sure that if CUFFT is used, it also
  53. # supports double precision.
  54. if !STARPU_USE_CUDA
  55. STARPU_FFT_EXAMPLES += test
  56. else
  57. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  58. STARPU_FFT_EXAMPLES += test
  59. endif
  60. endif
  61. test_LDADD = $(FFTW_LIBS)
  62. TESTS = $(STARPU_FFT_EXAMPLES)
  63. #check_PROGRAMS += examples/test_threads examples/testf_threads
  64. #examples_test_threads_LDADD = -lfftw3_threads
  65. #examples_testf_threads_LDADD = -lfftw3f_threads