Makefile.am 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2013, 2015-2016 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 CNRS
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  17. include $(top_srcdir)/starpu.mk
  18. CLEANFILES = starpu_idle_microsec.log
  19. examplebindir = $(libdir)/starpu/examples/starpufft
  20. EXTRA_DIST = \
  21. testx.c \
  22. testx_threads.c \
  23. testf_threads.c \
  24. test_threads.c
  25. if STARPU_HAVE_WINDOWS
  26. check_PROGRAMS = $(STARPU_FFT_EXAMPLES)
  27. else
  28. check_PROGRAMS = $(LOADER) $(STARPU_FFT_EXAMPLES)
  29. endif
  30. if !STARPU_HAVE_WINDOWS
  31. ## test loader program
  32. LOADER = loader
  33. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  34. LOADER_BIN = $(abs_top_builddir)/starpufft/tests/$(LOADER)
  35. loader_SOURCES = ../../tests/loader.c
  36. if STARPU_HAVE_AM111
  37. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  38. LOG_COMPILER = $(LOADER_BIN)
  39. else
  40. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  41. endif
  42. endif
  43. AM_CFLAGS = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  44. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  45. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include -I$(top_srcdir)/starpufft/include -I$(top_srcdir)/starpufft/src
  46. AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  47. examplebin_PROGRAMS =
  48. if BUILD_EXAMPLES
  49. examplebin_PROGRAMS += \
  50. testf \
  51. test
  52. endif
  53. STARPU_FFT_EXAMPLES = testf
  54. testf_LDADD = ../src/libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTWF_LIBS)
  55. # If we don't have CUDA, we assume that we have fftw available in double
  56. # precision anyway, we just want to make sure that if CUFFT is used, it also
  57. # supports double precision.
  58. if !STARPU_USE_CUDA
  59. STARPU_FFT_EXAMPLES += test
  60. else
  61. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  62. STARPU_FFT_EXAMPLES += test
  63. endif
  64. endif
  65. test_LDADD = ../src/libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTW_LIBS)
  66. TESTS = $(STARPU_FFT_EXAMPLES)
  67. #check_PROGRAMS += examples/test_threads examples/testf_threads
  68. #examples_test_threads_LDADD = libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu.la -lfftw3_threads
  69. #examples_testf_threads_LDADD = libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu.la -lfftw3f_threads