Makefile.am 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2010-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. AM_CFLAGS = $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
  17. LIBS = $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(HWLOC_LIBS) @LIBS@
  18. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
  19. AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
  20. if STARPU_USE_CUDA
  21. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ -I$(top_srcdir)/examples/ $(HWLOC_CFLAGS) -arch sm_13
  22. .cu.o:
  23. $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  24. endif
  25. TESTS = $(check_PROGRAMS)
  26. check_PROGRAMS =
  27. examplebindir = $(libdir)/starpu/examples/
  28. examplebin_PROGRAMS =
  29. noinst_HEADERS = \
  30. pi/SobolQRNG/sobol.h \
  31. pi/SobolQRNG/sobol_gold.h \
  32. pi/SobolQRNG/sobol_gpu.h \
  33. pi/SobolQRNG/sobol_primitives.h
  34. ######
  35. # Pi #
  36. ######
  37. check_PROGRAMS += \
  38. pi/pi \
  39. pi/pi_redux
  40. examplebin_PROGRAMS += \
  41. pi/pi \
  42. pi/pi_redux
  43. pi_pi_SOURCES = \
  44. pi/pi.c \
  45. pi/SobolQRNG/sobol_gold.c \
  46. pi/SobolQRNG/sobol_primitives.c
  47. if STARPU_USE_CUDA
  48. pi_pi_SOURCES += \
  49. pi/pi_kernel.cu \
  50. pi/SobolQRNG/sobol_gpu.cu
  51. endif
  52. pi_pi_redux_SOURCES = \
  53. pi/pi_redux.c
  54. if STARPU_USE_CUDA
  55. pi_pi_redux_SOURCES += \
  56. pi/pi_redux_kernel.cu
  57. pi_pi_redux_LDADD = \
  58. $(STARPU_CURAND_LDFLAGS)
  59. endif