Makefile.am 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2020 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.mk
  17. if STARPU_HAVE_WINDOWS
  18. LOADER_BIN =
  19. else
  20. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  21. if !STARPU_SIMGRID
  22. LOADER = loader
  23. LOADER_BIN = $(abs_top_builddir)/julia/examples/$(LOADER)
  24. endif
  25. loader_SOURCES = ../../tests/loader.c
  26. endif
  27. if STARPU_HAVE_AM111
  28. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  29. else
  30. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  31. endif
  32. BUILT_SOURCES =
  33. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  34. EXTRA_DIST = \
  35. mult/mult_starpu.sh
  36. examplebindir = $(libdir)/starpu/julia
  37. examplebin_PROGRAMS =
  38. if STARPU_USE_CUDA
  39. if STARPU_COVERITY
  40. include $(top_srcdir)/starpu-mynvcc.mk
  41. else
  42. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ $(HWLOC_CFLAGS)
  43. .cu.cubin:
  44. $(V_nvcc) $(NVCC) -cubin $< -o $@ $(NVCCFLAGS)
  45. .cu.o:
  46. $(V_nvcc) $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  47. endif
  48. endif
  49. AM_CFLAGS = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  50. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ ../src/libstarpujulia-@STARPU_EFFECTIVE_VERSION@.la -lm @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  51. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
  52. AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  53. check_PROGRAMS = $(LOADER) $(starpu_julia_EXAMPLES)
  54. SHELL_TESTS =
  55. STARPU_JULIA_EXAMPLES =
  56. if BUILD_EXAMPLES
  57. examplebin_PROGRAMS += $(STARPU_JULIA_EXAMPLES)
  58. TESTS = $(SHELL_TESTS) $(STARPU_JULIA_EXAMPLES)
  59. endif
  60. ######################
  61. # Examples #
  62. ######################
  63. STARPU_JULIA_EXAMPLES += mult/mult
  64. mult_mult_SOURCES = mult/mult.c mult/cpu_mult.c
  65. SHELL_TESTS += mult/mult_starpu.sh
  66. STARPU_JULIA_EXAMPLES += task_insert_color/task_insert_color
  67. task_insert_color_task_insert_color_SOURCES = task_insert_color/task_insert_color.c
  68. SHELL_TESTS += task_insert_color/task_insert_color.sh
  69. SHELL_TESTS += variable/variable.sh
  70. SHELL_TESTS += vector_scal/vector_scal.sh
  71. STARPU_JULIA_EXAMPLES += mandelbrot/mandelbrot
  72. mandelbrot_mandelbrot_SOURCES = mandelbrot/mandelbrot.c mandelbrot/cpu_mandelbrot.c mandelbrot/cpu_mandelbrot.h
  73. SHELL_TESTS += mandelbrot/mandelbrot.sh