Makefile.am 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. check_PROGRAMS = testf
  53. testf_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.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. check_PROGRAMS += test
  59. test_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la $(FFTW_LIBS)
  60. else
  61. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  62. check_PROGRAMS += test
  63. test_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la $(FFTW_LIBS)
  64. endif
  65. endif
  66. #check_PROGRAMS += test_threads testf_threads
  67. #test_threads_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la -lfftw3_threads
  68. #testf_threads_LDADD = libstarpufft.la $(top_builddir)/src/libstarpu.la -lfftw3f_threads