Makefile.am 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) $(GLOBAL_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
  42. LIBS += $(top_builddir)/src/@LIBSTARPU_LINK@ ../src/libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(FXT_LIBS) $(MAGMA_LIBS)
  43. LIBS += $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  44. examplebin_PROGRAMS =
  45. examplebin_PROGRAMS += \
  46. testf \
  47. test
  48. STARPU_FFT_EXAMPLES = testf
  49. testf_LDADD = $(FFTWF_LIBS)
  50. # If we don't have CUDA, we assume that we have fftw available in double
  51. # precision anyway, we just want to make sure that if CUFFT is used, it also
  52. # supports double precision.
  53. if !STARPU_USE_CUDA
  54. STARPU_FFT_EXAMPLES += test
  55. else
  56. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  57. STARPU_FFT_EXAMPLES += test
  58. endif
  59. endif
  60. test_LDADD = $(FFTW_LIBS)
  61. TESTS = $(STARPU_FFT_EXAMPLES)
  62. #check_PROGRAMS += examples/test_threads examples/testf_threads
  63. #examples_test_threads_LDADD = -lfftw3_threads
  64. #examples_testf_threads_LDADD = -lfftw3f_threads