Makefile.am 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. #
  2. # StarPU
  3. # Copyright (C) INRIA 2008-2009 (see AUTHORS file)
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. #
  16. LIBS = $(top_builddir)/src/libstarpu.la @LIBS@
  17. AM_CPPFLAGS = -I$(top_srcdir)/include/
  18. EXTRA_DIST = \
  19. microbenchs/null_kernel_gordon.c \
  20. datawizard/sync_and_notify_data_gordon_kernels.c
  21. CLEANFILES = \
  22. *.gcno *.gcda *.linkinfo \
  23. microbenchs/null_kernel_gordon.spuelf \
  24. datawizard/sync_and_notify_data_gordon_kernels.spuelf
  25. BUILT_SOURCES =
  26. if STARPU_USE_CUDA
  27. # TODO define NVCCFLAGS
  28. NVCC ?= nvcc
  29. NVCCFLAGS += -I$(top_srcdir)/include/
  30. .cu.cubin:
  31. $(MKDIR_P) `dirname $@`
  32. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  33. .cu.o:
  34. $(MKDIR_P) `dirname $@`
  35. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  36. endif
  37. if STARPU_USE_GORDON
  38. SPU_CC ?= spu-gcc
  39. SPU_LD ?= spu-ld
  40. .c.spuo:
  41. $(MKDIR_P) `dirname $@`
  42. $(SPU_CC) -c -fpic $< -o $@
  43. .spuo.spuelf:
  44. $(MKDIR_P) `dirname $@`
  45. $(SPU_LD) $< -o $@
  46. #BUILT_SOURCES +=
  47. # microbenchs/null_kernel_gordon.spuelf
  48. endif
  49. SUBDIRS =
  50. TESTS = $(check_PROGRAMS)
  51. check_PROGRAMS =
  52. check_PROGRAMS += \
  53. core/restart \
  54. core/execute_on_a_specific_worker \
  55. core/multithreaded \
  56. core/starpu_wait_all_tasks \
  57. core/starpu_wait_task \
  58. core/static_restartable \
  59. core/static_restartable_using_initializer\
  60. core/static_restartable_tag \
  61. core/regenerate \
  62. core/subgraph_repeat \
  63. core/empty_task \
  64. core/empty_task_sync_point \
  65. core/tag-wait-api \
  66. core/task-wait-api \
  67. datawizard/sync_and_notify_data \
  68. datawizard/dsm_stress \
  69. datawizard/write_only_tmp_buffer \
  70. datawizard/dining_philosophers \
  71. datawizard/readers_and_writers \
  72. datawizard/unpartition \
  73. datawizard/sync_with_data_with_mem \
  74. datawizard/sync_with_data_with_mem_non_blocking\
  75. errorcheck/starpu_init_noworker \
  76. errorcheck/invalid_blocking_calls \
  77. helper/cublas_init \
  78. helper/pinned_memory \
  79. helper/execute_on_all \
  80. helper/starpu_create_sync_task \
  81. microbenchs/async-tasks-overhead \
  82. microbenchs/sync-tasks-overhead \
  83. microbenchs/tasks-overhead \
  84. microbenchs/prefetch_data_on_node \
  85. microbenchs/redundant_buffer \
  86. microbenchs/local_pingpong \
  87. overlap/overlap
  88. core_restart_SOURCES = \
  89. core/restart.c
  90. core_execute_on_a_specific_worker_SOURCES = \
  91. core/execute_on_a_specific_worker.c
  92. core_multithreaded_SOURCES = \
  93. core/multithreaded.c
  94. core_starpu_wait_all_tasks_SOURCES = \
  95. core/starpu_wait_all_tasks.c
  96. core_starpu_wait_task_SOURCES = \
  97. core/starpu_wait_task.c
  98. core_static_restartable_SOURCES = \
  99. core/static_restartable.c
  100. core_static_restartable_using_initializer_SOURCES = \
  101. core/static_restartable_using_initializer.c
  102. core_static_restartable_tag_SOURCES = \
  103. core/static_restartable_tag.c
  104. core_regenerate_SOURCES = \
  105. core/regenerate.c
  106. core_subgraph_repeat_SOURCES = \
  107. core/subgraph_repeat.c
  108. core_empty_task_SOURCES = \
  109. core/empty_task.c
  110. core_empty_task_sync_point_SOURCES = \
  111. core/empty_task_sync_point.c
  112. core_tag_wait_api_SOURCES = \
  113. core/tag-wait-api.c
  114. core_task_wait_api_SOURCES = \
  115. core/task-wait-api.c
  116. datawizard_dsm_stress_SOURCES = \
  117. datawizard/dsm_stress.c
  118. datawizard_write_only_tmp_buffer_SOURCES = \
  119. datawizard/write_only_tmp_buffer.c
  120. datawizard_dining_philosophers_SOURCES = \
  121. datawizard/dining_philosophers.c
  122. datawizard_readers_and_writers_SOURCES = \
  123. datawizard/readers_and_writers.c
  124. datawizard_unpartition_SOURCES = \
  125. datawizard/unpartition.c
  126. datawizard_sync_with_data_with_mem_SOURCES = \
  127. datawizard/sync_with_data_with_mem.c
  128. datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
  129. datawizard/sync_with_data_with_mem_non_blocking.c
  130. errorcheck_starpu_init_noworker_SOURCES = \
  131. errorcheck/starpu_init_noworker.c
  132. errorcheck_invalid_blocking_calls_SOURCES = \
  133. errorcheck/invalid_blocking_calls.c
  134. helper_cublas_init_SOURCES = \
  135. helper/cublas_init.c
  136. helper_pinned_memory_SOURCES = \
  137. helper/pinned_memory.c
  138. helper_execute_on_all_SOURCES = \
  139. helper/execute_on_all.c
  140. helper_starpu_create_sync_task_SOURCES = \
  141. helper/starpu_create_sync_task.c
  142. microbenchs_async_tasks_overhead_SOURCES = \
  143. microbenchs/async-tasks-overhead.c
  144. microbenchs_sync_tasks_overhead_SOURCES = \
  145. microbenchs/sync-tasks-overhead.c
  146. microbenchs_tasks_overhead_SOURCES = \
  147. microbenchs/tasks-overhead.c
  148. microbenchs_prefetch_data_on_node_SOURCES = \
  149. microbenchs/prefetch_data_on_node.c
  150. datawizard_sync_and_notify_data_SOURCES = \
  151. datawizard/sync_and_notify_data.c
  152. microbenchs_redundant_buffer_SOURCES = \
  153. microbenchs/redundant_buffer.c
  154. microbenchs_local_pingpong_SOURCES = \
  155. microbenchs/local_pingpong.c
  156. if STARPU_USE_CUDA
  157. datawizard_sync_and_notify_data_SOURCES += \
  158. datawizard/sync_and_notify_data_kernels.cu
  159. endif
  160. if STARPU_USE_GORDON
  161. datawizard_sync_and_notify_data_SOURCES += \
  162. datawizard/sync_and_notify_data_gordon_kernels.c
  163. BUILT_SOURCES += \
  164. datawizard/sync_and_notify_data_gordon_kernels.spuelf \
  165. microbenchs/null_kernel_gordon.spuelf
  166. endif
  167. overlap_overlap_SOURCES = \
  168. overlap/overlap.c