Makefile.am 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2017 Inria
  4. # Copyright (C) 2010-2019 CNRS
  5. # Copyright (C) 2009-2017,2019 Université de Bordeaux
  6. #
  7. # StarPU is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2.1 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # StarPU is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. #
  18. AM_CFLAGS = $(GLOBAL_AM_CFLAGS) $(HWLOC_CFLAGS)
  19. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/starpufft/include/ -I$(top_builddir)/include -I$(top_builddir)/src -I$(top_srcdir)/src/ $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(HWLOC_CFLAGS)
  20. lib_LTLIBRARIES = libstarpufft-@STARPU_EFFECTIVE_VERSION@.la
  21. EXTRA_DIST = \
  22. starpufft-float.h \
  23. starpufft-double.h \
  24. cudax_kernels.h \
  25. starpufftx.c \
  26. starpufftx1d.c \
  27. starpufftx2d.c \
  28. starpufftx3d.c \
  29. cuda_kernels.cu \
  30. cudaf_kernels.cu \
  31. cudax_kernels.cu
  32. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_SOURCES = starpufft.c starpufftf.c starpufft_common.c
  33. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LIBADD = $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTW_LIBS) $(FFTWF_LIBS) $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(STARPU_CUFFT_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  34. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_CFLAGS = $(FFTWF_CFLAGS)
  35. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LDFLAGS = $(ldflags) -no-undefined \
  36. -version-info $(LIBSTARPUFFT_INTERFACE_CURRENT):$(LIBSTARPUFFT_INTERFACE_REVISION):$(LIBSTARPUFFT_INTERFACE_AGE)
  37. if STARPU_USE_CUDA
  38. if STARPU_COVERITY
  39. include $(top_srcdir)/starpu-mynvcc.mk
  40. else
  41. NVCCFLAGS += -Xcompiler -fPIC -Xlinker -fPIC
  42. cudaf_kernels.o: cudaf_kernels.cu
  43. $(V_nvcc) $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  44. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LIBADD += cudaf_kernels.o
  45. if STARPU_HAVE_CUFFTDOUBLECOMPLEX
  46. cuda_kernels.o: cuda_kernels.cu
  47. $(V_nvcc) $(NVCC) $(AM_CPPFLAGS) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  48. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LIBADD += cuda_kernels.o
  49. endif
  50. libstarpufft_@STARPU_EFFECTIVE_VERSION@_la_LIBADD += $(STARPU_CUDA_LDFLAGS)
  51. endif
  52. endif
  53. recheck:
  54. -cat /dev/null
  55. showcheck:
  56. -cat /dev/null
  57. showsuite:
  58. -cat /dev/null