Makefile.am 6.9 KB

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