Makefile.am 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. #
  5. # StarPU 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. # StarPU 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. include $(top_srcdir)/starpu-notests.mk
  17. AM_CFLAGS += $(FFTWF_CFLAGS)
  18. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/starpufft/include/ -I$(top_builddir)/include -I$(top_builddir)/src -I$(top_srcdir)/src/ $(STARPU_H_CPPFLAGS)
  19. LIBS += $(top_builddir)/src/@LIBSTARPU_LINK@ $(STARPU_EXPORTED_LIBS)
  20. LIBS += $(FFTW_LIBS) $(FFTWF_LIBS)
  21. LIBS += $(STARPU_CUDA_LDFLAGS) $(STARPU_CUFFT_LDFLAGS)
  22. lib_LTLIBRARIES = libstarpufft-@STARPU_EFFECTIVE_VERSION@.la
  23. EXTRA_DIST = \
  24. starpufft-float.h \
  25. starpufft-double.h \
  26. cudax_kernels.h \
  27. starpufftx.c \
  28. starpufftx1d.c \
  29. starpufftx2d.c \
  30. starpufftx3d.c \
  31. cuda_kernels.cu \
  32. cudaf_kernels.cu \
  33. cudax_kernels.cu
  34. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_SOURCES = starpufft.c starpufftf.c starpufft_common.c
  35. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LDFLAGS = $(ldflags) -no-undefined \
  36. -version-info $(LIBSTARPUFFT_INTERFACE_CURRENT):$(LIBSTARPUFFT_INTERFACE_REVISION):$(LIBSTARPUFFT_INTERFACE_AGE)
  37. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LIBADD =
  38. if STARPU_USE_CUDA
  39. if STARPU_COVERITY
  40. include $(top_srcdir)/starpu-mynvcc.mk
  41. else
  42. NVCCFLAGS += -Xcompiler -fPIC -Xlinker -fPIC
  43. cudaf_kernels.o: cudaf_kernels.cu
  44. $(V_nvcc) $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  45. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LIBADD += cudaf_kernels.o
  46. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  47. cuda_kernels.o: cuda_kernels.cu
  48. $(V_nvcc) $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  49. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LIBADD += cuda_kernels.o
  50. endif
  51. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LIBS = $(LIBS) $(STARPU_CUDA_LDFLAGS)
  52. endif
  53. endif