Makefile.am 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2013, 2015 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. 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
  69. showcheck:
  70. -cat $(TEST_LOGS) /dev/null
  71. ! grep -q "ERROR: AddressSanitizer: " $(TEST_LOGS) /dev/null
  72. ! grep -q "WARNING: AddressSanitizer: " $(TEST_LOGS) /dev/null
  73. ! grep -q "ERROR: ThreadSanitizer: " $(TEST_LOGS) /dev/null
  74. ! grep -q "WARNING: ThreadSanitizer: " $(TEST_LOGS) /dev/null