Makefile.am 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. errorcheck/starpu_init_noworker \
  64. helper/cublas_init \
  65. helper/pinned_memory \
  66. microbenchs/async-tasks-overhead \
  67. microbenchs/sync-tasks-overhead \
  68. microbenchs/tasks-overhead \
  69. microbenchs/tag-wait-api \
  70. microbenchs/dsm_stress \
  71. microbenchs/prefetch_data_on_node \
  72. microbenchs/sync_and_notify_data \
  73. microbenchs/redundant_buffer \
  74. overlap/overlap
  75. core_restart_SOURCES = \
  76. core/restart.c
  77. core_execute_on_a_specific_worker_SOURCES = \
  78. core/execute_on_a_specific_worker.c
  79. core_multithreaded_SOURCES = \
  80. core/multithreaded.c
  81. core_starpu_wait_all_tasks_SOURCES = \
  82. core/starpu_wait_all_tasks.c
  83. core_starpu_wait_task_SOURCES = \
  84. core/starpu_wait_task.c
  85. core_static_restartable_SOURCES = \
  86. core/static_restartable.c
  87. core_static_restartable_using_initializer_SOURCES = \
  88. core/static_restartable_using_initializer.c
  89. core_static_restartable_tag_SOURCES = \
  90. core/static_restartable_tag.c
  91. core_empty_task_SOURCES = \
  92. core/empty_task.c
  93. core_empty_task_sync_point_SOURCES = \
  94. core/empty_task_sync_point.c
  95. errorcheck_starpu_init_noworker_SOURCES = \
  96. errorcheck/starpu_init_noworker.c
  97. helper_cublas_init_SOURCES = \
  98. helper/cublas_init.c
  99. helper_pinned_memory_SOURCES = \
  100. helper/pinned_memory.c
  101. microbenchs_async_tasks_overhead_SOURCES = \
  102. microbenchs/async-tasks-overhead.c
  103. microbenchs_sync_tasks_overhead_SOURCES = \
  104. microbenchs/sync-tasks-overhead.c
  105. microbenchs_tasks_overhead_SOURCES = \
  106. microbenchs/tasks-overhead.c
  107. microbenchs_tag_wait_api_SOURCES = \
  108. microbenchs/tag-wait-api.c
  109. microbenchs_dsm_stress_SOURCES = \
  110. microbenchs/dsm_stress.c
  111. microbenchs_prefetch_data_on_node_SOURCES = \
  112. microbenchs/prefetch_data_on_node.c
  113. microbenchs_sync_and_notify_data_SOURCES = \
  114. microbenchs/sync_and_notify_data.c
  115. microbenchs_redundant_buffer_SOURCES = \
  116. microbenchs/redundant_buffer.c
  117. if USE_CUDA
  118. microbenchs_sync_and_notify_data_SOURCES += \
  119. microbenchs/sync_and_notify_data_kernels.cu
  120. endif
  121. if USE_GORDON
  122. microbenchs_sync_and_notify_data_SOURCES += \
  123. microbenchs/sync_and_notify_data_gordon_kernels.c
  124. BUILT_SOURCES += \
  125. microbenchs/sync_and_notify_data_gordon_kernels.spuelf \
  126. microbenchs/null_kernel_gordon.spuelf
  127. endif
  128. overlap_overlap_SOURCES = \
  129. overlap/overlap.c