Makefile.am 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. microbenchs/sync_and_notify_data_gordon_kernels.c
  21. CLEANFILES = \
  22. *.gcno *.gcda *.linkinfo \
  23. microbenchs/null_kernel_gordon.spuelf \
  24. microbenchs/sync_and_notify_data_gordon_kernels.spuelf
  25. BUILT_SOURCES =
  26. if 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 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/empty_task \
  62. core/empty_task_sync_point \
  63. datawizard/write_only_tmp_buffer \
  64. datawizard/dining_philosophers \
  65. datawizard/readers_and_writers \
  66. datawizard/unpartition \
  67. datawizard/sync_with_data_with_mem \
  68. datawizard/sync_with_data_with_mem_non_blocking\
  69. errorcheck/starpu_init_noworker \
  70. errorcheck/invalid_blocking_calls \
  71. helper/cublas_init \
  72. helper/pinned_memory \
  73. helper/execute_on_all \
  74. helper/starpu_create_sync_task \
  75. microbenchs/async-tasks-overhead \
  76. microbenchs/sync-tasks-overhead \
  77. microbenchs/tasks-overhead \
  78. microbenchs/tag-wait-api \
  79. microbenchs/dsm_stress \
  80. microbenchs/prefetch_data_on_node \
  81. microbenchs/sync_and_notify_data \
  82. microbenchs/redundant_buffer \
  83. overlap/overlap
  84. core_restart_SOURCES = \
  85. core/restart.c
  86. core_execute_on_a_specific_worker_SOURCES = \
  87. core/execute_on_a_specific_worker.c
  88. core_multithreaded_SOURCES = \
  89. core/multithreaded.c
  90. core_starpu_wait_all_tasks_SOURCES = \
  91. core/starpu_wait_all_tasks.c
  92. core_starpu_wait_task_SOURCES = \
  93. core/starpu_wait_task.c
  94. core_static_restartable_SOURCES = \
  95. core/static_restartable.c
  96. core_static_restartable_using_initializer_SOURCES = \
  97. core/static_restartable_using_initializer.c
  98. core_static_restartable_tag_SOURCES = \
  99. core/static_restartable_tag.c
  100. core_empty_task_SOURCES = \
  101. core/empty_task.c
  102. core_empty_task_sync_point_SOURCES = \
  103. core/empty_task_sync_point.c
  104. datawizard_write_only_tmp_buffer_SOURCES = \
  105. datawizard/write_only_tmp_buffer.c
  106. datawizard_dining_philosophers_SOURCES = \
  107. datawizard/dining_philosophers.c
  108. datawizard_readers_and_writers_SOURCES = \
  109. datawizard/readers_and_writers.c
  110. datawizard_unpartition_SOURCES = \
  111. datawizard/unpartition.c
  112. datawizard_sync_with_data_with_mem_SOURCES = \
  113. datawizard/sync_with_data_with_mem.c
  114. datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
  115. datawizard/sync_with_data_with_mem_non_blocking.c
  116. errorcheck_starpu_init_noworker_SOURCES = \
  117. errorcheck/starpu_init_noworker.c
  118. errorcheck_invalid_blocking_calls_SOURCES = \
  119. errorcheck/invalid_blocking_calls.c
  120. helper_cublas_init_SOURCES = \
  121. helper/cublas_init.c
  122. helper_pinned_memory_SOURCES = \
  123. helper/pinned_memory.c
  124. helper_execute_on_all_SOURCES = \
  125. helper/execute_on_all.c
  126. helper_starpu_create_sync_task_SOURCES = \
  127. helper/starpu_create_sync_task.c
  128. microbenchs_async_tasks_overhead_SOURCES = \
  129. microbenchs/async-tasks-overhead.c
  130. microbenchs_sync_tasks_overhead_SOURCES = \
  131. microbenchs/sync-tasks-overhead.c
  132. microbenchs_tasks_overhead_SOURCES = \
  133. microbenchs/tasks-overhead.c
  134. microbenchs_tag_wait_api_SOURCES = \
  135. microbenchs/tag-wait-api.c
  136. microbenchs_dsm_stress_SOURCES = \
  137. microbenchs/dsm_stress.c
  138. microbenchs_prefetch_data_on_node_SOURCES = \
  139. microbenchs/prefetch_data_on_node.c
  140. microbenchs_sync_and_notify_data_SOURCES = \
  141. microbenchs/sync_and_notify_data.c
  142. microbenchs_redundant_buffer_SOURCES = \
  143. microbenchs/redundant_buffer.c
  144. if USE_CUDA
  145. microbenchs_sync_and_notify_data_SOURCES += \
  146. microbenchs/sync_and_notify_data_kernels.cu
  147. endif
  148. if USE_GORDON
  149. microbenchs_sync_and_notify_data_SOURCES += \
  150. microbenchs/sync_and_notify_data_gordon_kernels.c
  151. BUILT_SOURCES += \
  152. microbenchs/sync_and_notify_data_gordon_kernels.spuelf \
  153. microbenchs/null_kernel_gordon.spuelf
  154. endif
  155. overlap_overlap_SOURCES = \
  156. overlap/overlap.c