Makefile.am 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. noinst_PROGRAMS =
  18. if STARPU_HAVE_WINDOWS
  19. LOADER_BIN =
  20. else
  21. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  22. if !STARPU_SIMGRID
  23. LOADER = loader
  24. LOADER_BIN = $(abs_top_builddir)/julia/examples/$(LOADER)
  25. noinst_PROGRAMS += loader
  26. endif
  27. loader_SOURCES = ../../tests/loader.c
  28. endif
  29. if STARPU_HAVE_AM111
  30. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  31. else
  32. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  33. endif
  34. BUILT_SOURCES =
  35. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  36. EXTRA_DIST = \
  37. axpy/axpy.jl \
  38. axpy/axpy.sh \
  39. black_scholes/black_scholes.jl \
  40. callback/callback.jl \
  41. callback/callback.sh \
  42. check_deps/check_deps.jl \
  43. check_deps/check_deps.sh \
  44. dependency/end_dep.jl \
  45. dependency/end_dep.sh \
  46. dependency/tag_dep.jl \
  47. dependency/tag_dep.sh \
  48. dependency/task_dep.sh \
  49. dependency/task_dep.jl \
  50. mandelbrot/mandelbrot_native.jl \
  51. mandelbrot/mandelbrot.jl \
  52. mandelbrot/mandelbrot.sh \
  53. mult/mult_native.jl \
  54. mult/mult.jl \
  55. mult/perf.sh \
  56. mult/mult_starpu.sh \
  57. task_insert_color/task_insert_color.jl \
  58. task_insert_color/task_insert_color.sh \
  59. variable/variable.jl \
  60. variable/variable_native.jl \
  61. variable/variable.sh \
  62. vector_scal/vector_scal.jl \
  63. vector_scal/vector_scal.sh
  64. examplebindir = $(libdir)/starpu/julia
  65. examplebin_PROGRAMS =
  66. if STARPU_USE_CUDA
  67. if STARPU_COVERITY
  68. include $(top_srcdir)/starpu-mynvcc.mk
  69. else
  70. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ $(HWLOC_CFLAGS)
  71. .cu.cubin:
  72. $(V_nvcc) $(NVCC) -cubin $< -o $@ $(NVCCFLAGS)
  73. .cu.o:
  74. $(V_nvcc) $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  75. endif
  76. endif
  77. AM_CFLAGS = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  78. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ ../src/libstarpujulia-@STARPU_EFFECTIVE_VERSION@.la -lm @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  79. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
  80. AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  81. check_PROGRAMS = $(LOADER) $(starpu_julia_EXAMPLES)
  82. SHELL_TESTS =
  83. STARPU_JULIA_EXAMPLES =
  84. if BUILD_EXAMPLES
  85. examplebin_PROGRAMS += $(STARPU_JULIA_EXAMPLES)
  86. TESTS = $(SHELL_TESTS) $(STARPU_JULIA_EXAMPLES)
  87. endif
  88. ######################
  89. # Examples #
  90. ######################
  91. SHELL_TESTS += check_deps/check_deps.sh
  92. STARPU_JULIA_EXAMPLES += mult/mult
  93. mult_mult_SOURCES = mult/mult.c mult/cpu_mult.c
  94. SHELL_TESTS += mult/mult_starpu.sh
  95. STARPU_JULIA_EXAMPLES += task_insert_color/task_insert_color
  96. task_insert_color_task_insert_color_SOURCES = task_insert_color/task_insert_color.c
  97. SHELL_TESTS += task_insert_color/task_insert_color.sh
  98. SHELL_TESTS += variable/variable.sh
  99. SHELL_TESTS += vector_scal/vector_scal.sh
  100. STARPU_JULIA_EXAMPLES += mandelbrot/mandelbrot
  101. mandelbrot_mandelbrot_SOURCES = mandelbrot/mandelbrot.c mandelbrot/cpu_mandelbrot.c mandelbrot/cpu_mandelbrot.h
  102. SHELL_TESTS += mandelbrot/mandelbrot.sh
  103. STARPU_JULIA_EXAMPLES += callback/callback
  104. callback_callback_SOURCES = callback/callback.c
  105. SHELL_TESTS += callback/callback.sh
  106. SHELL_TESTS += dependency/tag_dep.sh
  107. SHELL_TESTS += dependency/task_dep.sh
  108. SHELL_TESTS += dependency/end_dep.sh
  109. if !NO_BLAS_LIB
  110. SHELL_TESTS += axpy/axpy.sh
  111. endif