Makefile.am 6.4 KB

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