Makefile.am 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. 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. SUBDIRS =
  59. TESTS = $(check_PROGRAMS)
  60. if STARPU_COVERAGE_ENABLED
  61. TESTS += coverage/coverage.sh
  62. endif
  63. testbin_PROGRAMS = \
  64. core/restart \
  65. core/execute_on_a_specific_worker \
  66. core/insert_task \
  67. core/multithreaded \
  68. core/multithreaded_init \
  69. core/starpu_task_wait_for_all \
  70. core/starpu_task_wait \
  71. core/static_restartable \
  72. core/static_restartable_using_initializer\
  73. core/static_restartable_tag \
  74. core/regenerate \
  75. core/wait_all_regenerable_tasks \
  76. core/subgraph_repeat \
  77. core/subgraph_repeat_regenerate \
  78. core/empty_task \
  79. core/empty_task_sync_point \
  80. core/empty_task_sync_point_tasks \
  81. core/empty_task_chain \
  82. core/tag_wait_api \
  83. core/task_wait_api \
  84. core/declare_deps_in_callback \
  85. core/declare_deps_after_submission \
  86. core/declare_deps_after_submission_synchronous \
  87. core/get_current_task \
  88. datawizard/acquire_cb \
  89. datawizard/acquire_release \
  90. datawizard/acquire_release2 \
  91. datawizard/data_implicit_deps \
  92. datawizard/data_lookup \
  93. datawizard/scratch \
  94. datawizard/sync_and_notify_data \
  95. datawizard/sync_and_notify_data_implicit\
  96. datawizard/dsm_stress \
  97. datawizard/write_only_tmp_buffer \
  98. datawizard/data_invalidation \
  99. datawizard/dining_philosophers \
  100. datawizard/manual_reduction \
  101. datawizard/readers_and_writers \
  102. datawizard/unpartition \
  103. datawizard/user_interaction_implicit \
  104. datawizard/reclaim \
  105. datawizard/sync_with_data_with_mem \
  106. datawizard/sync_with_data_with_mem_non_blocking\
  107. datawizard/sync_with_data_with_mem_non_blocking_implicit\
  108. datawizard/mpi_like \
  109. datawizard/mpi_like_async \
  110. datawizard/critical_section_with_void_interface\
  111. datawizard/increment_redux \
  112. datawizard/increment_redux_v2 \
  113. datawizard/handle_to_pointer \
  114. datawizard/lazy_allocation \
  115. errorcheck/starpu_init_noworker \
  116. errorcheck/invalid_blocking_calls \
  117. errorcheck/invalid_tasks \
  118. helper/cublas_init \
  119. helper/starpu_data_cpy \
  120. helper/pinned_memory \
  121. helper/execute_on_all \
  122. helper/starpu_create_sync_task \
  123. microbenchs/async_tasks_overhead \
  124. microbenchs/sync_tasks_overhead \
  125. microbenchs/tasks_overhead \
  126. microbenchs/prefetch_data_on_node \
  127. microbenchs/redundant_buffer \
  128. microbenchs/local_pingpong \
  129. overlap/overlap \
  130. parallel_tasks/explicit_combined_worker \
  131. parallel_tasks/parallel_kernels \
  132. parallel_tasks/parallel_kernels_spmd \
  133. perfmodels/regression_based \
  134. perfmodels/non_linear_regression_based
  135. check_PROGRAMS =
  136. $(testbin_PROGRAMS)
  137. datawizard_acquire_release_SOURCES = \
  138. datawizard/acquire_release.c
  139. if STARPU_USE_CUDA
  140. datawizard_acquire_release_SOURCES += \
  141. datawizard/acquire_release_cuda.cu
  142. endif
  143. datawizard_acquire_release2_SOURCES = \
  144. datawizard/acquire_release2.c
  145. if STARPU_USE_CUDA
  146. datawizard_acquire_release2_SOURCES += \
  147. datawizard/acquire_release_cuda.cu
  148. endif
  149. datawizard_scratch_SOURCES = \
  150. datawizard/scratch.c
  151. if STARPU_USE_CUDA
  152. datawizard_scratch_SOURCES += \
  153. datawizard/scratch_cuda.cu
  154. endif
  155. datawizard_mpi_like_SOURCES = \
  156. datawizard/mpi_like.c
  157. if STARPU_USE_CUDA
  158. datawizard_mpi_like_SOURCES += \
  159. datawizard/cuda_codelet_unsigned_inc.cu
  160. endif
  161. datawizard_mpi_like_async_SOURCES = \
  162. datawizard/mpi_like_async.c
  163. if STARPU_USE_CUDA
  164. datawizard_mpi_like_async_SOURCES += \
  165. datawizard/cuda_codelet_unsigned_inc.cu
  166. endif
  167. datawizard_sync_and_notify_data_SOURCES = \
  168. datawizard/sync_and_notify_data.c
  169. if STARPU_USE_CUDA
  170. datawizard_sync_and_notify_data_SOURCES += \
  171. datawizard/sync_and_notify_data_kernels.cu
  172. endif
  173. if STARPU_USE_OPENCL
  174. datawizard_sync_and_notify_data_SOURCES += \
  175. datawizard/sync_and_notify_data_opencl.c
  176. nobase_STARPU_OPENCL_DATA_DATA += \
  177. datawizard/sync_and_notify_data_opencl_codelet.cl
  178. endif
  179. datawizard_sync_and_notify_data_implicit_SOURCES = \
  180. datawizard/sync_and_notify_data_implicit.c
  181. if STARPU_USE_CUDA
  182. datawizard_sync_and_notify_data_implicit_SOURCES += \
  183. datawizard/sync_and_notify_data_kernels.cu
  184. endif
  185. if STARPU_USE_OPENCL
  186. datawizard_sync_and_notify_data_implicit_SOURCES += \
  187. datawizard/sync_and_notify_data_opencl.c
  188. endif
  189. if STARPU_USE_GORDON
  190. datawizard_sync_and_notify_data_SOURCES += \
  191. datawizard/sync_and_notify_data_gordon_kernels.c
  192. datawizard_sync_and_notify_data_implicit_SOURCES += \
  193. datawizard/sync_and_notify_data_gordon_kernels.c
  194. BUILT_SOURCES += \
  195. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  196. microbenchs/null_kernel_gordon.spuelf
  197. endif