Makefile.am 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2011 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011 Centre National de la Recherche Scientifique
  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. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
  18. AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUFFT_LDFLAGS)
  19. lib_LTLIBRARIES = libstarpufft.la
  20. EXTRA_DIST = \
  21. starpufft.h \
  22. float.h \
  23. double.h \
  24. cudax_kernels.h \
  25. starpufftx.c \
  26. starpufftx1d.c \
  27. starpufftx2d.c \
  28. cuda_kernels.cu \
  29. cudaf_kernels.cu \
  30. cudax_kernels.cu \
  31. testx.c \
  32. testx_threads.c \
  33. testf_threads.c \
  34. test_threads.c
  35. libstarpufft_la_SOURCES = starpufft.c starpufftf.c starpufft_common.c
  36. libstarpufft_la_LIBADD = $(top_builddir)/src/libstarpu.la $(FFTW_LIBS) $(FFTWF_LIBS)
  37. libstarpufft_la_CFLAGS = $(FFTWF_CFLAGS)
  38. if STARPU_USE_CUDA
  39. NVCCFLAGS += -Xcompiler -fPIC -Xlinker -fPIC
  40. cudaf_kernels.o: cudaf_kernels.cu
  41. $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  42. libstarpufft_la_SOURCES += cudaf_kernels.cu
  43. am_libstarpufft_la_OBJECTS = cudaf_kernels.o starpufftf.lo starpufft_common.lo
  44. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  45. cuda_kernels.o: cuda_kernels.cu
  46. $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir} -arch sm_13
  47. libstarpufft_la_SOURCES += cuda_kernels.cu
  48. am_libstarpufft_la_OBJECTS += cuda_kernels.o starpufft.lo
  49. endif
  50. libstarpufft_la_LIBADD += $(STARPU_CUDA_LDFLAGS)
  51. endif
  52. examplebindir = $(libdir)/starpu/examples/starpufft
  53. examplebin_PROGRAMS = \
  54. testf
  55. check_PROGRAMS = testf
  56. testf_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la $(FFTWF_LIBS)
  57. # If we don't have CUDA, we assume that we have fftw available in double
  58. # precision anyway, we just want to make sure that if CUFFT is used, it also
  59. # supports double precision.
  60. if !STARPU_USE_CUDA
  61. check_PROGRAMS += test
  62. test_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la $(FFTW_LIBS)
  63. else
  64. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  65. check_PROGRAMS += test
  66. test_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la $(FFTW_LIBS)
  67. endif
  68. endif
  69. #check_PROGRAMS += test_threads testf_threads
  70. #test_threads_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la -lfftw3_threads
  71. #testf_threads_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la -lfftw3f_threads