Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. microbenchs/async-tasks-overhead \
  54. microbenchs/sync-tasks-overhead \
  55. microbenchs/tag-wait-api \
  56. microbenchs/sync_and_notify_data
  57. microbenchs_async_tasks_overhead_SOURCES = \
  58. microbenchs/async-tasks-overhead.c
  59. microbenchs_sync_tasks_overhead_SOURCES = \
  60. microbenchs/sync-tasks-overhead.c
  61. microbenchs_tag_wait_api_SOURCES = \
  62. microbenchs/tag-wait-api.c
  63. microbenchs_sync_and_notify_data_SOURCES = \
  64. microbenchs/sync_and_notify_data.c
  65. if USE_CUDA
  66. microbenchs_sync_and_notify_data_SOURCES += \
  67. microbenchs/sync_and_notify_data_kernels.cu
  68. endif
  69. if USE_GORDON
  70. microbenchs_sync_and_notify_data_SOURCES += \
  71. microbenchs/sync_and_notify_data_gordon_kernels.c
  72. BUILT_SOURCES += \
  73. microbenchs/sync_and_notify_data_gordon_kernels.spuelf \
  74. microbenchs/null_kernel_gordon.spuelf
  75. endif