Makefile.am 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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/data_implicit_deps \
  102. datawizard/data_lookup \
  103. datawizard/scratch \
  104. datawizard/sync_and_notify_data \
  105. datawizard/sync_and_notify_data_implicit\
  106. datawizard/dsm_stress \
  107. datawizard/write_only_tmp_buffer \
  108. datawizard/data_invalidation \
  109. datawizard/dining_philosophers \
  110. datawizard/manual_reduction \
  111. datawizard/readers_and_writers \
  112. datawizard/unpartition \
  113. datawizard/user_interaction_implicit \
  114. datawizard/reclaim \
  115. datawizard/sync_with_data_with_mem \
  116. datawizard/sync_with_data_with_mem_non_blocking\
  117. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  118. datawizard/mpi_like \
  119. datawizard/mpi_like_async \
  120. datawizard/critical_section_with_void_interface\
  121. datawizard/increment_redux \
  122. datawizard/increment_redux_v2 \
  123. datawizard/handle_to_pointer \
  124. datawizard/lazy_allocation \
  125. errorcheck/starpu_init_noworker \
  126. errorcheck/invalid_blocking_calls \
  127. errorcheck/invalid_tasks \
  128. helper/cublas_init \
  129. helper/starpu_data_cpy \
  130. helper/pinned_memory \
  131. helper/execute_on_all \
  132. helper/starpu_create_sync_task \
  133. microbenchs/async_tasks_overhead \
  134. microbenchs/sync_tasks_overhead \
  135. microbenchs/tasks_overhead \
  136. microbenchs/prefetch_data_on_node \
  137. microbenchs/redundant_buffer \
  138. microbenchs/local_pingpong \
  139. overlap/overlap \
  140. parallel_tasks/explicit_combined_worker \
  141. parallel_tasks/parallel_kernels \
  142. parallel_tasks/parallel_kernels_spmd \
  143. perfmodels/regression_based \
  144. perfmodels/non_linear_regression_based
  145. if STARPU_HAVE_WINDOWS
  146. check_PROGRAMS = $(noinst_PROGRAMS)
  147. else
  148. check_PROGRAMS = $(LOADER) $(noinst_PROGRAMS)
  149. endif
  150. #######################
  151. # Source files #
  152. #######################
  153. datawizard_acquire_release_SOURCES = \
  154. datawizard/acquire_release.c
  155. if STARPU_USE_CUDA
  156. datawizard_acquire_release_SOURCES += \
  157. datawizard/acquire_release_cuda.cu
  158. endif
  159. datawizard_acquire_release2_SOURCES = \
  160. datawizard/acquire_release2.c
  161. if STARPU_USE_CUDA
  162. datawizard_acquire_release2_SOURCES += \
  163. datawizard/acquire_release_cuda.cu
  164. endif
  165. datawizard_scratch_SOURCES = \
  166. datawizard/scratch.c
  167. if STARPU_USE_CUDA
  168. datawizard_scratch_SOURCES += \
  169. datawizard/scratch_cuda.cu
  170. endif
  171. datawizard_mpi_like_SOURCES = \
  172. datawizard/mpi_like.c
  173. if STARPU_USE_CUDA
  174. datawizard_mpi_like_SOURCES += \
  175. datawizard/cuda_codelet_unsigned_inc.cu
  176. endif
  177. datawizard_mpi_like_async_SOURCES = \
  178. datawizard/mpi_like_async.c
  179. if STARPU_USE_CUDA
  180. datawizard_mpi_like_async_SOURCES += \
  181. datawizard/cuda_codelet_unsigned_inc.cu
  182. endif
  183. datawizard_sync_and_notify_data_SOURCES = \
  184. datawizard/sync_and_notify_data.c
  185. if STARPU_USE_CUDA
  186. datawizard_sync_and_notify_data_SOURCES += \
  187. datawizard/sync_and_notify_data_kernels.cu
  188. endif
  189. if STARPU_USE_OPENCL
  190. datawizard_sync_and_notify_data_SOURCES += \
  191. datawizard/sync_and_notify_data_opencl.c
  192. nobase_STARPU_OPENCL_DATA_DATA += \
  193. datawizard/sync_and_notify_data_opencl_codelet.cl
  194. endif
  195. datawizard_sync_and_notify_data_implicit_SOURCES = \
  196. datawizard/sync_and_notify_data_implicit.c
  197. if STARPU_USE_CUDA
  198. datawizard_sync_and_notify_data_implicit_SOURCES += \
  199. datawizard/sync_and_notify_data_kernels.cu
  200. endif
  201. if STARPU_USE_OPENCL
  202. datawizard_sync_and_notify_data_implicit_SOURCES += \
  203. datawizard/sync_and_notify_data_opencl.c
  204. endif
  205. if STARPU_USE_GORDON
  206. datawizard_sync_and_notify_data_SOURCES += \
  207. datawizard/sync_and_notify_data_gordon_kernels.c
  208. datawizard_sync_and_notify_data_implicit_SOURCES += \
  209. datawizard/sync_and_notify_data_gordon_kernels.c
  210. BUILT_SOURCES += \
  211. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  212. microbenchs/null_kernel_gordon.spuelf
  213. endif