Makefile.am 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2012, 2015-2017 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 CNRS
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. include $(top_srcdir)/starpu.mk
  17. if STARPU_SIMGRID
  18. STARPU_PERF_MODEL_DIR=$(abs_top_srcdir)/tools/perfmodels/sampling
  19. STARPU_HOSTNAME=mirage
  20. MALLOC_PERTURB_=0
  21. export STARPU_PERF_MODEL_DIR
  22. export STARPU_HOSTNAME
  23. export MALLOC_PERTURB_
  24. endif
  25. CC=$(MPICC)
  26. CCLD=$(MPICC)
  27. if STARPU_HAVE_WINDOWS
  28. LOADER_BIN =
  29. else
  30. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  31. if !STARPU_SIMGRID
  32. LOADER = loader
  33. LOADER_BIN = $(abs_top_builddir)/nmad/tests/$(LOADER)
  34. endif
  35. loader_SOURCES = ../../tests/loader.c
  36. endif
  37. if STARPU_SIMGRID
  38. MPI = $(abs_top_builddir)/tools/starpu_smpirun -np 4 -platform $(abs_top_srcdir)/tools/perfmodels/cluster.xml -hostfile $(abs_top_srcdir)/tools/perfmodels/hostfile
  39. else
  40. # we always test on 4 processes, the execution time is not that bigger
  41. if STARPU_QUICK_CHECK
  42. MPI = $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
  43. else
  44. MPI = $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
  45. endif
  46. endif
  47. if STARPU_HAVE_AM111
  48. TESTS_ENVIRONMENT = STARPU_WORKERS_NOBIND=1 STARPU_NCPU=4 top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  49. LOG_COMPILER = $(MPI) $(LOADER_BIN)
  50. else
  51. TESTS_ENVIRONMENT = STARPU_WORKERS_NOBIND=1 STARPU_NCPU=4 top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(MPI) $(LOADER_BIN)
  52. endif
  53. #if STARPU_MPI_CHECK
  54. TESTS = $(starpu_mpi_TESTS)
  55. #endif
  56. check_PROGRAMS = $(LOADER) $(starpu_mpi_TESTS)
  57. BUILT_SOURCES =
  58. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  59. EXTRA_DIST = \
  60. user_defined_datatype_value.h \
  61. helper.h
  62. examplebindir = $(libdir)/starpu/examples/nmad
  63. examplebin_PROGRAMS =
  64. if STARPU_USE_CUDA
  65. if STARPU_COVERITY
  66. include $(top_srcdir)/starpu-mynvcc.mk
  67. else
  68. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ $(HWLOC_CFLAGS)
  69. .cu.cubin:
  70. $(MKDIR_P) `dirname $@`
  71. $(NVCC) -cubin $< -o $@ $(NVCCFLAGS)
  72. .cu.o:
  73. $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  74. endif
  75. endif
  76. AM_CFLAGS = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) $(GLOBAL_AM_CFLAGS) -Wno-unused
  77. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  78. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/include -I$(top_srcdir)/nmad/include -I$(top_srcdir)/nmad/src -I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/examples/
  79. AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS) $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  80. ########################
  81. # Unit testcases #
  82. ########################
  83. if BUILD_TESTS
  84. starpu_mpi_TESTS =
  85. starpu_mpi_TESTS += \
  86. cache \
  87. cache_disable \
  88. callback \
  89. early_request \
  90. insert_task \
  91. insert_task_block \
  92. insert_task_dyn_handles \
  93. insert_task_node_choice \
  94. insert_task_owner \
  95. insert_task_owner2 \
  96. insert_task_owner_data \
  97. matrix \
  98. matrix2 \
  99. mpi_detached_tag \
  100. mpi_irecv_detached \
  101. mpi_isend_detached \
  102. mpi_scatter_gather \
  103. policy_register \
  104. policy_register_many \
  105. policy_selection \
  106. policy_selection2
  107. if !STARPU_SIMGRID
  108. starpu_mpi_TESTS += \
  109. pingpong \
  110. mpi_test \
  111. mpi_isend \
  112. mpi_earlyrecv \
  113. mpi_earlyrecv2 \
  114. mpi_earlyrecv2_sync \
  115. mpi_irecv \
  116. mpi_redux \
  117. block_interface \
  118. block_interface_pinned \
  119. matrix2 \
  120. insert_task_compute \
  121. insert_task_sent_cache \
  122. insert_task_recv_cache \
  123. multiple_send \
  124. user_defined_datatype \
  125. tags_checking \
  126. sync \
  127. gather \
  128. gather2
  129. # Expected to fail
  130. starpu_mpi_TESTS += \
  131. policy_register_toomany \
  132. policy_unregister \
  133. starpu_redefine
  134. endif
  135. noinst_PROGRAMS = \
  136. datatypes \
  137. pingpong \
  138. mpi_test \
  139. mpi_isend \
  140. mpi_earlyrecv \
  141. mpi_earlyrecv2 \
  142. mpi_earlyrecv2_sync \
  143. mpi_irecv \
  144. mpi_isend_detached \
  145. mpi_irecv_detached \
  146. mpi_detached_tag \
  147. mpi_redux \
  148. block_interface \
  149. block_interface_pinned \
  150. cache \
  151. cache_disable \
  152. callback \
  153. matrix \
  154. matrix2 \
  155. insert_task \
  156. insert_task_compute \
  157. insert_task_sent_cache \
  158. insert_task_recv_cache \
  159. insert_task_block \
  160. insert_task_owner \
  161. insert_task_owner2 \
  162. insert_task_owner_data \
  163. insert_task_node_choice \
  164. insert_task_dyn_handles \
  165. multiple_send \
  166. mpi_scatter_gather \
  167. user_defined_datatype \
  168. tags_checking \
  169. sync \
  170. gather \
  171. gather2 \
  172. policy_register \
  173. policy_register_many \
  174. policy_register_toomany \
  175. policy_unregister \
  176. policy_selection \
  177. policy_selection2 \
  178. early_request \
  179. starpu_redefine
  180. XFAIL_TESTS= \
  181. policy_register_toomany \
  182. policy_unregister \
  183. starpu_redefine
  184. ring_SOURCES = ring.c
  185. ring_sync_SOURCES = ring_sync.c
  186. ring_sync_detached_SOURCES = ring_sync_detached.c
  187. ring_async_SOURCES = ring_async.c
  188. ring_async_implicit_SOURCES = ring_async_implicit.c
  189. insert_task_count_SOURCES = insert_task_count.c
  190. if STARPU_USE_CUDA
  191. ring_SOURCES += ring_kernel.cu
  192. ring_sync_SOURCES += ring_kernel.cu
  193. ring_sync_detached_SOURCES += ring_kernel.cu
  194. ring_async_SOURCES += ring_kernel.cu
  195. ring_async_implicit_SOURCES += ring_kernel.cu
  196. insert_task_count_SOURCES += ring_kernel.cu
  197. endif
  198. user_defined_datatype_SOURCES = user_defined_datatype.c
  199. user_defined_datatype_SOURCES += ../../examples/interface/complex_interface.c
  200. mpi_earlyrecv2_SOURCES = mpi_earlyrecv2.c
  201. mpi_earlyrecv2_SOURCES += ../../examples/interface/complex_interface.c
  202. mpi_earlyrecv2_sync_SOURCES = mpi_earlyrecv2_sync.c
  203. mpi_earlyrecv2_sync_SOURCES += ../../examples/interface/complex_interface.c
  204. endif