Makefile.am 11 KB

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