Makefile.am 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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/test_vector_opencl_kernel.cl
  29. CLEANFILES = \
  30. *.gcno *.gcda *.linkinfo \
  31. microbenchs/null_kernel_gordon.spuelf \
  32. datawizard/sync_and_notify_data_gordon_kernels.spuelf
  33. BUILT_SOURCES =
  34. SUBDIRS =
  35. if STARPU_USE_OPENCL
  36. nobase_STARPU_OPENCL_DATA_DATA =
  37. endif
  38. if STARPU_USE_CUDA
  39. # TODO define NVCCFLAGS
  40. NVCC ?= nvcc
  41. NVCCFLAGS += -I$(top_srcdir)/include/ -I$(top_builddir)/include $(HWLOC_CFLAGS)
  42. .cu.cubin:
  43. $(MKDIR_P) `dirname $@`
  44. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  45. .cu.o:
  46. $(MKDIR_P) `dirname $@`
  47. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  48. endif
  49. if STARPU_USE_GORDON
  50. SPU_CC ?= spu-gcc
  51. SPU_LD ?= spu-ld
  52. .c.spuo:
  53. $(MKDIR_P) `dirname $@`
  54. $(SPU_CC) -c -fpic $< -o $@
  55. .spuo.spuelf:
  56. $(MKDIR_P) `dirname $@`
  57. $(SPU_LD) $< -o $@
  58. #BUILT_SOURCES +=
  59. # microbenchs/null_kernel_gordon.spuelf
  60. endif
  61. testbindir = $(libdir)/starpu/tests
  62. #####################################
  63. # What to install and what to check #
  64. #####################################
  65. if !STARPU_HAVE_WINDOWS
  66. ## test loader program
  67. LOADER = loader
  68. LOADER_BIN = $(abs_top_builddir)/tests/$(LOADER)
  69. TESTS_ENVIRONMENT = $(LOADER_BIN)
  70. endif
  71. TESTS = $(noinst_PROGRAMS)
  72. if STARPU_COVERAGE_ENABLED
  73. TESTS += coverage/coverage.sh
  74. endif
  75. noinst_PROGRAMS = \
  76. core/restart \
  77. core/execute_on_a_specific_worker \
  78. core/insert_task \
  79. core/multithreaded \
  80. core/multithreaded_init \
  81. core/starpu_task_wait_for_all \
  82. core/starpu_task_wait \
  83. core/static_restartable \
  84. core/static_restartable_using_initializer\
  85. core/static_restartable_tag \
  86. core/regenerate \
  87. core/wait_all_regenerable_tasks \
  88. core/subgraph_repeat \
  89. core/subgraph_repeat_regenerate \
  90. core/empty_task \
  91. core/empty_task_sync_point \
  92. core/empty_task_sync_point_tasks \
  93. core/empty_task_chain \
  94. core/tag_wait_api \
  95. core/task_wait_api \
  96. core/declare_deps_in_callback \
  97. core/declare_deps_after_submission \
  98. core/declare_deps_after_submission_synchronous \
  99. core/get_current_task \
  100. datawizard/acquire_cb \
  101. datawizard/acquire_cb_insert \
  102. datawizard/acquire_release \
  103. datawizard/acquire_release2 \
  104. datawizard/copy \
  105. datawizard/data_implicit_deps \
  106. datawizard/data_lookup \
  107. datawizard/scratch \
  108. datawizard/sync_and_notify_data \
  109. datawizard/sync_and_notify_data_implicit\
  110. datawizard/dsm_stress \
  111. datawizard/write_only_tmp_buffer \
  112. datawizard/data_invalidation \
  113. datawizard/dining_philosophers \
  114. datawizard/manual_reduction \
  115. datawizard/readers_and_writers \
  116. datawizard/unpartition \
  117. datawizard/user_interaction_implicit \
  118. datawizard/reclaim \
  119. datawizard/sync_with_data_with_mem \
  120. datawizard/sync_with_data_with_mem_non_blocking\
  121. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  122. datawizard/mpi_like \
  123. datawizard/mpi_like_async \
  124. datawizard/critical_section_with_void_interface\
  125. datawizard/increment_redux \
  126. datawizard/increment_redux_v2 \
  127. datawizard/handle_to_pointer \
  128. datawizard/lazy_allocation \
  129. datawizard/interfaces/test_vector_interface \
  130. errorcheck/starpu_init_noworker \
  131. errorcheck/invalid_blocking_calls \
  132. errorcheck/invalid_tasks \
  133. helper/cublas_init \
  134. helper/starpu_data_cpy \
  135. helper/pinned_memory \
  136. helper/execute_on_all \
  137. helper/starpu_create_sync_task \
  138. microbenchs/async_tasks_overhead \
  139. microbenchs/sync_tasks_overhead \
  140. microbenchs/tasks_overhead \
  141. microbenchs/prefetch_data_on_node \
  142. microbenchs/redundant_buffer \
  143. microbenchs/local_pingpong \
  144. overlap/overlap \
  145. parallel_tasks/explicit_combined_worker \
  146. parallel_tasks/parallel_kernels \
  147. parallel_tasks/parallel_kernels_spmd \
  148. perfmodels/regression_based \
  149. perfmodels/non_linear_regression_based
  150. if STARPU_HAVE_WINDOWS
  151. check_PROGRAMS = $(noinst_PROGRAMS)
  152. else
  153. check_PROGRAMS = $(LOADER) $(noinst_PROGRAMS)
  154. endif
  155. #######################
  156. # Source files #
  157. #######################
  158. datawizard_acquire_release_SOURCES = \
  159. datawizard/acquire_release.c
  160. if STARPU_USE_CUDA
  161. datawizard_acquire_release_SOURCES += \
  162. datawizard/acquire_release_cuda.cu
  163. endif
  164. datawizard_acquire_release2_SOURCES = \
  165. datawizard/acquire_release2.c
  166. if STARPU_USE_CUDA
  167. datawizard_acquire_release2_SOURCES += \
  168. datawizard/acquire_release_cuda.cu
  169. endif
  170. datawizard_scratch_SOURCES = \
  171. datawizard/scratch.c
  172. if STARPU_USE_CUDA
  173. datawizard_scratch_SOURCES += \
  174. datawizard/scratch_cuda.cu
  175. endif
  176. datawizard_mpi_like_SOURCES = \
  177. datawizard/mpi_like.c
  178. if STARPU_USE_CUDA
  179. datawizard_mpi_like_SOURCES += \
  180. datawizard/cuda_codelet_unsigned_inc.cu
  181. endif
  182. datawizard_mpi_like_async_SOURCES = \
  183. datawizard/mpi_like_async.c
  184. if STARPU_USE_CUDA
  185. datawizard_mpi_like_async_SOURCES += \
  186. datawizard/cuda_codelet_unsigned_inc.cu
  187. endif
  188. datawizard_sync_and_notify_data_SOURCES = \
  189. datawizard/sync_and_notify_data.c
  190. if STARPU_USE_CUDA
  191. datawizard_sync_and_notify_data_SOURCES += \
  192. datawizard/sync_and_notify_data_kernels.cu
  193. endif
  194. if STARPU_USE_OPENCL
  195. datawizard_sync_and_notify_data_SOURCES += \
  196. datawizard/sync_and_notify_data_opencl.c
  197. nobase_STARPU_OPENCL_DATA_DATA += \
  198. datawizard/sync_and_notify_data_opencl_codelet.cl
  199. endif
  200. datawizard_sync_and_notify_data_implicit_SOURCES = \
  201. datawizard/sync_and_notify_data_implicit.c
  202. if STARPU_USE_CUDA
  203. datawizard_sync_and_notify_data_implicit_SOURCES += \
  204. datawizard/sync_and_notify_data_kernels.cu
  205. endif
  206. if STARPU_USE_OPENCL
  207. datawizard_sync_and_notify_data_implicit_SOURCES += \
  208. datawizard/sync_and_notify_data_opencl.c
  209. endif
  210. if STARPU_USE_GORDON
  211. datawizard_sync_and_notify_data_SOURCES += \
  212. datawizard/sync_and_notify_data_gordon_kernels.c
  213. datawizard_sync_and_notify_data_implicit_SOURCES += \
  214. datawizard/sync_and_notify_data_gordon_kernels.c
  215. BUILT_SOURCES += \
  216. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  217. microbenchs/null_kernel_gordon.spuelf
  218. endif
  219. ##############
  220. # Interfaces #
  221. ##############
  222. datawizard_interfaces_test_vector_interface_SOURCES = \
  223. datawizard/interfaces/test_vector_interface.c \
  224. datawizard/interfaces/test_interfaces.c
  225. if STARPU_USE_CUDA
  226. datawizard_interfaces_test_vector_interface_SOURCES += \
  227. datawizard/interfaces/test_vector_cuda.cu
  228. endif
  229. if STARPU_USE_OPENCL
  230. datawizard_interfaces_test_vector_interface_SOURCES += \
  231. datawizard/interfaces/test_vector_opencl.c
  232. nobase_STARPU_OPENCL_DATA_DATA += \
  233. datawizard/interfaces/test_vector_opencl_kernel.cl
  234. endif