Makefile.am 3.1 KB

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