Makefile.am 6.9 KB

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