Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. 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. versincludedir = $(includedir)/starpu/$(STARPU_EFFECTIVE_VERSION)
  35. versinclude_HEADERS = \
  36. starpufft.h
  37. pkgconfigdir = $(libdir)/pkgconfig
  38. pkgconfig_DATA = libstarpufft.pc
  39. libstarpufft_la_SOURCES = starpufft.c starpufftf.c starpufft_common.c
  40. libstarpufft_la_LIBADD = $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTW_LIBS) $(FFTWF_LIBS)
  41. libstarpufft_la_CFLAGS = $(FFTWF_CFLAGS)
  42. if STARPU_USE_CUDA
  43. NVCCFLAGS += -Xcompiler -fPIC -Xlinker -fPIC
  44. cudaf_kernels.o: cudaf_kernels.cu
  45. $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  46. libstarpufft_la_SOURCES += cudaf_kernels.cu
  47. am_libstarpufft_la_OBJECTS = cudaf_kernels.o starpufftf.lo starpufft_common.lo
  48. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  49. cuda_kernels.o: cuda_kernels.cu
  50. $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir} -arch sm_13
  51. libstarpufft_la_SOURCES += cuda_kernels.cu
  52. am_libstarpufft_la_OBJECTS += cuda_kernels.o starpufft.lo
  53. endif
  54. libstarpufft_la_LIBADD += $(STARPU_CUDA_LDFLAGS)
  55. endif
  56. examplebindir = $(libdir)/starpu/examples/starpufft
  57. examplebin_PROGRAMS = \
  58. testf
  59. check_PROGRAMS = testf
  60. testf_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTWF_LIBS)
  61. # If we don't have CUDA, we assume that we have fftw available in double
  62. # precision anyway, we just want to make sure that if CUFFT is used, it also
  63. # supports double precision.
  64. if !STARPU_USE_CUDA
  65. check_PROGRAMS += test
  66. test_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTW_LIBS)
  67. else
  68. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  69. check_PROGRAMS += test
  70. test_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTW_LIBS)
  71. endif
  72. endif
  73. #check_PROGRAMS += test_threads testf_threads
  74. #test_threads_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la -lfftw3_threads
  75. #testf_threads_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la -lfftw3f_threads