Makefile.am 2.5 KB

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