Makefile.am 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. if STARPU_HAVE_WINDOWS
  25. check_PROGRAMS = $(STARPU_FFT_EXAMPLES)
  26. else
  27. check_PROGRAMS = $(LOADER) $(STARPU_FFT_EXAMPLES)
  28. endif
  29. if !STARPU_HAVE_WINDOWS
  30. ## test loader program
  31. LOADER = loader
  32. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  33. LOADER_BIN = $(abs_top_builddir)/starpufft/tests/$(LOADER)
  34. loader_SOURCES = ../../tests/loader.c
  35. if STARPU_HAVE_AM111
  36. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  37. LOG_COMPILER = $(LOADER_BIN)
  38. else
  39. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  40. endif
  41. endif
  42. AM_CFLAGS = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  43. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  44. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include -I$(top_srcdir)/starpufft/include -I$(top_srcdir)/starpufft/src
  45. AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  46. examplebin_PROGRAMS =
  47. if BUILD_EXAMPLES
  48. examplebin_PROGRAMS += \
  49. testf \
  50. test
  51. endif
  52. STARPU_FFT_EXAMPLES = testf
  53. testf_LDADD = ../src/libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTWF_LIBS)
  54. # If we don't have CUDA, we assume that we have fftw available in double
  55. # precision anyway, we just want to make sure that if CUFFT is used, it also
  56. # supports double precision.
  57. if !STARPU_USE_CUDA
  58. STARPU_FFT_EXAMPLES += test
  59. else
  60. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  61. STARPU_FFT_EXAMPLES += test
  62. endif
  63. endif
  64. test_LDADD = ../src/libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTW_LIBS)
  65. TESTS = $(STARPU_FFT_EXAMPLES)
  66. #check_PROGRAMS += examples/test_threads examples/testf_threads
  67. #examples_test_threads_LDADD = libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu.la -lfftw3_threads
  68. #examples_testf_threads_LDADD = libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu.la -lfftw3f_threads