Makefile.am 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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. # Copyright (C) 2010, 2011 Institut National de Recherche en Informatique et Automatique
  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. AM_CFLAGS = $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
  18. LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
  19. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/src -I$(top_srcdir)/src/
  20. AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
  21. EXTRA_DIST = \
  22. common/helper.h \
  23. microbenchs/null_kernel_gordon.c \
  24. datawizard/sync_and_notify_data_gordon_kernels.c \
  25. datawizard/sync_and_notify_data_opencl_codelet.cl\
  26. coverage/coverage.sh \
  27. datawizard/interfaces/test_interfaces.h \
  28. datawizard/interfaces/variable/variable_opencl_kernel.cl \
  29. datawizard/interfaces/vector/test_vector_opencl_kernel.cl \
  30. datawizard/interfaces/multiformat/multiformat_types.h \
  31. datawizard/interfaces/multiformat/multiformat_opencl_kernel.cl \
  32. datawizard/interfaces/multiformat/multiformat_conversion_codelets_kernel.cl
  33. CLEANFILES = \
  34. *.gcno *.gcda *.linkinfo \
  35. microbenchs/null_kernel_gordon.spuelf \
  36. datawizard/sync_and_notify_data_gordon_kernels.spuelf
  37. BUILT_SOURCES =
  38. SUBDIRS =
  39. if STARPU_USE_OPENCL
  40. nobase_STARPU_OPENCL_DATA_DATA =
  41. endif
  42. if STARPU_USE_CUDA
  43. # TODO define NVCCFLAGS
  44. NVCC ?= nvcc
  45. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include $(HWLOC_CFLAGS)
  46. .cu.cubin:
  47. $(MKDIR_P) `dirname $@`
  48. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  49. .cu.o:
  50. $(MKDIR_P) `dirname $@`
  51. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  52. endif
  53. if STARPU_USE_GORDON
  54. SPU_CC ?= spu-gcc
  55. SPU_LD ?= spu-ld
  56. .c.spuo:
  57. $(MKDIR_P) `dirname $@`
  58. $(SPU_CC) -c -fpic $< -o $@
  59. .spuo.spuelf:
  60. $(MKDIR_P) `dirname $@`
  61. $(SPU_LD) $< -o $@
  62. #BUILT_SOURCES +=
  63. # microbenchs/null_kernel_gordon.spuelf
  64. endif
  65. testbindir = $(libdir)/starpu/tests
  66. #####################################
  67. # What to install and what to check #
  68. #####################################
  69. if !STARPU_HAVE_WINDOWS
  70. ## test loader program
  71. LOADER = loader
  72. LOADER_BIN = $(abs_top_builddir)/tests/$(LOADER)
  73. TESTS_ENVIRONMENT = $(LOADER_BIN)
  74. endif
  75. TESTS = $(noinst_PROGRAMS)
  76. if STARPU_COVERAGE_ENABLED
  77. TESTS += coverage/coverage.sh
  78. endif
  79. starpu_machine_display_SOURCES = ../tools/starpu_machine_display.c
  80. noinst_PROGRAMS = \
  81. starpu_machine_display \
  82. core/restart \
  83. core/execute_on_a_specific_worker \
  84. core/insert_task \
  85. core/multiformat_data_release \
  86. core/multiformat_handle_conversion \
  87. core/multithreaded \
  88. core/multithreaded_init \
  89. core/starpu_task_wait_for_all \
  90. core/starpu_task_wait \
  91. core/static_restartable \
  92. core/static_restartable_using_initializer\
  93. core/static_restartable_tag \
  94. core/regenerate \
  95. core/wait_all_regenerable_tasks \
  96. core/subgraph_repeat \
  97. core/subgraph_repeat_regenerate \
  98. core/empty_task \
  99. core/empty_task_sync_point \
  100. core/empty_task_sync_point_tasks \
  101. core/empty_task_chain \
  102. core/tag_wait_api \
  103. core/task_wait_api \
  104. core/declare_deps_in_callback \
  105. core/declare_deps_after_submission \
  106. core/declare_deps_after_submission_synchronous \
  107. core/get_current_task \
  108. datawizard/acquire_cb \
  109. datawizard/acquire_cb_insert \
  110. datawizard/acquire_release \
  111. datawizard/acquire_release2 \
  112. datawizard/copy \
  113. datawizard/data_implicit_deps \
  114. datawizard/data_lookup \
  115. datawizard/scratch \
  116. datawizard/sync_and_notify_data \
  117. datawizard/sync_and_notify_data_implicit\
  118. datawizard/dsm_stress \
  119. datawizard/write_only_tmp_buffer \
  120. datawizard/data_invalidation \
  121. datawizard/dining_philosophers \
  122. datawizard/manual_reduction \
  123. datawizard/readers_and_writers \
  124. datawizard/unpartition \
  125. datawizard/user_interaction_implicit \
  126. datawizard/reclaim \
  127. datawizard/sync_with_data_with_mem \
  128. datawizard/sync_with_data_with_mem_non_blocking\
  129. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  130. datawizard/mpi_like \
  131. datawizard/mpi_like_async \
  132. datawizard/critical_section_with_void_interface\
  133. datawizard/increment_redux \
  134. datawizard/increment_redux_v2 \
  135. datawizard/handle_to_pointer \
  136. datawizard/lazy_allocation \
  137. datawizard/interfaces/multiformat/multiformat_interface \
  138. datawizard/interfaces/variable/variable_interface \
  139. datawizard/interfaces/vector/test_vector_interface \
  140. errorcheck/starpu_init_noworker \
  141. errorcheck/invalid_blocking_calls \
  142. errorcheck/invalid_tasks \
  143. helper/cublas_init \
  144. helper/starpu_data_cpy \
  145. helper/pinned_memory \
  146. helper/execute_on_all \
  147. helper/starpu_create_sync_task \
  148. microbenchs/async_tasks_overhead \
  149. microbenchs/sync_tasks_overhead \
  150. microbenchs/tasks_overhead \
  151. microbenchs/prefetch_data_on_node \
  152. microbenchs/redundant_buffer \
  153. microbenchs/local_pingpong \
  154. overlap/overlap \
  155. parallel_tasks/explicit_combined_worker \
  156. parallel_tasks/parallel_kernels \
  157. parallel_tasks/parallel_kernels_spmd \
  158. perfmodels/regression_based \
  159. perfmodels/non_linear_regression_based
  160. if STARPU_HAVE_WINDOWS
  161. check_PROGRAMS = $(noinst_PROGRAMS)
  162. else
  163. check_PROGRAMS = $(LOADER) $(noinst_PROGRAMS)
  164. endif
  165. #######################
  166. # Source files #
  167. #######################
  168. datawizard_acquire_release_SOURCES = \
  169. datawizard/acquire_release.c
  170. if STARPU_USE_CUDA
  171. datawizard_acquire_release_SOURCES += \
  172. datawizard/acquire_release_cuda.cu
  173. endif
  174. datawizard_acquire_release2_SOURCES = \
  175. datawizard/acquire_release2.c
  176. if STARPU_USE_CUDA
  177. datawizard_acquire_release2_SOURCES += \
  178. datawizard/acquire_release_cuda.cu
  179. endif
  180. datawizard_scratch_SOURCES = \
  181. datawizard/scratch.c
  182. if STARPU_USE_CUDA
  183. datawizard_scratch_SOURCES += \
  184. datawizard/scratch_cuda.cu
  185. endif
  186. datawizard_mpi_like_SOURCES = \
  187. datawizard/mpi_like.c
  188. if STARPU_USE_CUDA
  189. datawizard_mpi_like_SOURCES += \
  190. datawizard/cuda_codelet_unsigned_inc.cu
  191. endif
  192. datawizard_mpi_like_async_SOURCES = \
  193. datawizard/mpi_like_async.c
  194. if STARPU_USE_CUDA
  195. datawizard_mpi_like_async_SOURCES += \
  196. datawizard/cuda_codelet_unsigned_inc.cu
  197. endif
  198. datawizard_sync_and_notify_data_SOURCES = \
  199. datawizard/sync_and_notify_data.c
  200. if STARPU_USE_CUDA
  201. datawizard_sync_and_notify_data_SOURCES += \
  202. datawizard/sync_and_notify_data_kernels.cu
  203. endif
  204. if STARPU_USE_OPENCL
  205. datawizard_sync_and_notify_data_SOURCES += \
  206. datawizard/sync_and_notify_data_opencl.c
  207. nobase_STARPU_OPENCL_DATA_DATA += \
  208. datawizard/sync_and_notify_data_opencl_codelet.cl
  209. endif
  210. datawizard_sync_and_notify_data_implicit_SOURCES = \
  211. datawizard/sync_and_notify_data_implicit.c
  212. if STARPU_USE_CUDA
  213. datawizard_sync_and_notify_data_implicit_SOURCES += \
  214. datawizard/sync_and_notify_data_kernels.cu
  215. endif
  216. if STARPU_USE_OPENCL
  217. datawizard_sync_and_notify_data_implicit_SOURCES += \
  218. datawizard/sync_and_notify_data_opencl.c
  219. endif
  220. if STARPU_USE_GORDON
  221. datawizard_sync_and_notify_data_SOURCES += \
  222. datawizard/sync_and_notify_data_gordon_kernels.c
  223. datawizard_sync_and_notify_data_implicit_SOURCES += \
  224. datawizard/sync_and_notify_data_gordon_kernels.c
  225. BUILT_SOURCES += \
  226. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  227. microbenchs/null_kernel_gordon.spuelf
  228. endif
  229. core_multiformat_handle_conversion_SOURCES = \
  230. core/multiformat_handle_conversion.c
  231. core_multiformat_data_release_SOURCES = \
  232. core/multiformat_data_release.c
  233. ##############
  234. # Interfaces #
  235. ##############
  236. datawizard_interfaces_vector_test_vector_interface_SOURCES = \
  237. datawizard/interfaces/vector/test_vector_interface.c \
  238. datawizard/interfaces/test_interfaces.c
  239. if STARPU_USE_CUDA
  240. datawizard_interfaces_vector_test_vector_interface_SOURCES += \
  241. datawizard/interfaces/vector/test_vector_cuda.cu
  242. endif
  243. if STARPU_USE_OPENCL
  244. datawizard_interfaces_vector_test_vector_interface_SOURCES += \
  245. datawizard/interfaces/vector/test_vector_opencl.c
  246. nobase_STARPU_OPENCL_DATA_DATA += \
  247. datawizard/interfaces/vector/test_vector_opencl_kernel.cl
  248. endif
  249. datawizard_interfaces_multiformat_multiformat_interface_SOURCES = \
  250. datawizard/interfaces/test_interfaces.c \
  251. datawizard/interfaces/multiformat/multiformat_interface.c \
  252. datawizard/interfaces/multiformat/multiformat_conversion_codelets.c
  253. if STARPU_USE_CUDA
  254. datawizard_interfaces_multiformat_multiformat_interface_SOURCES+= \
  255. datawizard/interfaces/multiformat/multiformat_cuda.cu \
  256. datawizard/interfaces/multiformat/multiformat_conversion_codelets_cuda.cu
  257. endif
  258. if STARPU_USE_OPENCL
  259. datawizard_interfaces_multiformat_multiformat_interface_SOURCES+= \
  260. datawizard/interfaces/multiformat/multiformat_opencl.c \
  261. datawizard/interfaces/multiformat/multiformat_conversion_codelets_opencl.c
  262. nobase_STARPU_OPENCL_DATA_DATA += \
  263. datawizard/interfaces/multiformat/multiformat_opencl_kernel.cl \
  264. datawizard/interfaces/multiformat/multiformat_conversion_codelets_kernel.cl
  265. endif
  266. datawizard_interfaces_variable_variable_interface_SOURCES= \
  267. datawizard/interfaces/test_interfaces.c \
  268. datawizard/interfaces/variable/variable_interface.c
  269. if STARPU_USE_CUDA
  270. datawizard_interfaces_variable_variable_interface_SOURCES+= \
  271. datawizard/interfaces/variable/variable_cuda.cu
  272. endif
  273. if STARPU_USE_OPENCL
  274. datawizard_interfaces_variable_variable_interface_SOURCES+= \
  275. datawizard/interfaces/variable/variable_opencl.c
  276. nobase_STARPU_OPENCL_DATA_DATA += \
  277. datawizard/interfaces/variable/variable_opencl_kernel.cl
  278. endif