Makefile.am 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2012 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012 Centre National de la Recherche Scientifique
  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. CC=$(MPICC)
  17. CCLD=$(MPICC)
  18. if STARPU_MPI_CHECK
  19. if STARPU_HAVE_AM111
  20. LOG_COMPILER = $(MPIEXEC) -np 2
  21. else
  22. TESTS_ENVIRONMENT = $(MPIEXEC) -np 2
  23. endif
  24. TESTS = $(check_PROGRAMS)
  25. endif
  26. check_PROGRAMS =
  27. BUILT_SOURCES =
  28. CLEANFILES = *.gcno *.gcda *.linkinfo
  29. EXTRA_DIST = \
  30. mpi_lu/mpi_lu-float.h \
  31. mpi_lu/mpi_lu-double.h \
  32. mpi_lu/plu_example.c \
  33. mpi_lu/plu_solve.c \
  34. mpi_lu/pxlu.h \
  35. mpi_lu/pxlu.c \
  36. mpi_lu/pxlu_kernels.h \
  37. mpi_lu/pxlu_kernels.c \
  38. cholesky/mpi_cholesky.h \
  39. cholesky/mpi_cholesky_models.h \
  40. cholesky/mpi_cholesky_codelets.h \
  41. ../tests/helper.h
  42. examplebindir = $(libdir)/starpu/mpi
  43. examplebin_PROGRAMS =
  44. if STARPU_USE_CUDA
  45. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ $(HWLOC_CFLAGS)
  46. .cu.cubin:
  47. $(MKDIR_P) `dirname $@`
  48. $(NVCC) -cubin $< -o $@ $(NVCCFLAGS)
  49. .cu.o:
  50. $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  51. endif
  52. AM_CFLAGS = -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(FXT_CFLAGS) $(MAGMA_CFLAGS) $(HWLOC_CFLAGS)
  53. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ @LIBS@ $(FXT_LIBS) $(MAGMA_LIBS)
  54. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include -I$(top_srcdir)/mpi/include
  55. AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS)
  56. ###################
  57. # Stencil example #
  58. ###################
  59. if BUILD_EXAMPLES
  60. examplebin_PROGRAMS += \
  61. stencil/stencil5
  62. stencil_stencil5_LDADD = \
  63. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  64. check_PROGRAMS += \
  65. stencil/stencil5
  66. ##################
  67. # MPI LU example #
  68. ##################
  69. if !NO_BLAS_LIB
  70. examplebin_PROGRAMS += \
  71. mpi_lu/plu_example_float \
  72. mpi_lu/plu_example_double
  73. mpi_lu_plu_example_float_LDADD = \
  74. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la \
  75. $(STARPU_LIBNUMA_LDFLAGS) \
  76. $(STARPU_BLAS_LDFLAGS)
  77. mpi_lu_plu_example_float_SOURCES = \
  78. mpi_lu/plu_example_float.c \
  79. mpi_lu/plu_solve_float.c \
  80. mpi_lu/pslu_kernels.c \
  81. mpi_lu/pslu.c \
  82. $(top_srcdir)/examples/common/blas.c
  83. mpi_lu_plu_example_double_LDADD = \
  84. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la \
  85. $(STARPU_LIBNUMA_LDFLAGS) \
  86. $(STARPU_BLAS_LDFLAGS)
  87. mpi_lu_plu_example_double_SOURCES = \
  88. mpi_lu/plu_example_double.c \
  89. mpi_lu/plu_solve_double.c \
  90. mpi_lu/pdlu_kernels.c \
  91. mpi_lu/pdlu.c \
  92. $(top_srcdir)/examples/common/blas.c
  93. endif
  94. ########################
  95. # MPI Cholesky example #
  96. ########################
  97. if !NO_BLAS_LIB
  98. examplebin_PROGRAMS += \
  99. cholesky/mpi_cholesky \
  100. cholesky/mpi_cholesky_distributed
  101. cholesky_mpi_cholesky_SOURCES = \
  102. cholesky/mpi_cholesky.c \
  103. cholesky/mpi_cholesky_models.c \
  104. cholesky/mpi_cholesky_kernels.c \
  105. cholesky/mpi_cholesky_codelets.c \
  106. $(top_srcdir)/examples/common/blas.c
  107. cholesky_mpi_cholesky_LDADD = \
  108. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la \
  109. $(STARPU_BLAS_LDFLAGS)
  110. cholesky_mpi_cholesky_distributed_SOURCES = \
  111. cholesky/mpi_cholesky_distributed.c \
  112. cholesky/mpi_cholesky_models.c \
  113. cholesky/mpi_cholesky_kernels.c \
  114. cholesky/mpi_cholesky_codelets.c \
  115. $(top_srcdir)/examples/common/blas.c
  116. cholesky_mpi_cholesky_distributed_LDADD = \
  117. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la \
  118. $(STARPU_BLAS_LDFLAGS)
  119. check_PROGRAMS += \
  120. cholesky/mpi_cholesky \
  121. cholesky/mpi_cholesky_distributed
  122. endif
  123. ###################
  124. # complex example #
  125. ###################
  126. examplebin_PROGRAMS += \
  127. complex/mpi_complex
  128. complex_mpi_complex_SOURCES = \
  129. complex/mpi_complex.c \
  130. $(top_srcdir)/examples/interface/complex_interface.c
  131. complex_mpi_complex_LDADD = \
  132. ../src/libstarpumpi-@STARPU_EFFECTIVE_VERSION@.la
  133. check_PROGRAMS += \
  134. complex/mpi_complex
  135. endif
  136. showcheck:
  137. -cat $(TEST_LOGS) /dev/null