Makefile.am 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. CLEANFILES = *.gcno *.gcda *.linkinfo
  19. BUILT_SOURCES =
  20. if USE_CUDA
  21. # TODO define NVCCFLAGS
  22. NVCC ?= nvcc
  23. NVCCFLAGS += -I$(top_srcdir)/include/
  24. .cu.cubin:
  25. $(MKDIR_P) `dirname $@`
  26. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  27. .cu.o:
  28. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  29. endif
  30. if USE_GORDON
  31. SPU_CC ?= spu-gcc
  32. SPU_LD ?= spu-ld
  33. .c.spuo:
  34. $(SPU_CC) -c -fpic $< -o $@
  35. .spuo.spuelf:
  36. $(SPU_LD) $< -o $@
  37. endif
  38. SUBDIRS =
  39. TESTS = $(check_PROGRAMS)
  40. check_PROGRAMS =
  41. check_PROGRAMS += \
  42. microbenchs/async-tasks-overhead \
  43. microbenchs/sync-tasks-overhead \
  44. microbenchs/tag-wait-api \
  45. microbenchs/sync_and_notify_data
  46. microbenchs_async_tasks_overhead_SOURCES = \
  47. microbenchs/async-tasks-overhead.c
  48. microbenchs_sync_tasks_overhead_SOURCES = \
  49. microbenchs/sync-tasks-overhead.c
  50. microbenchs_tag_wait_api_SOURCES = \
  51. microbenchs/tag-wait-api.c
  52. microbenchs_sync_and_notify_data_SOURCES = \
  53. microbenchs/sync_and_notify_data.c
  54. if USE_CUDA
  55. microbenchs_sync_and_notify_data_SOURCES += \
  56. microbenchs/sync_and_notify_data_kernels.cu
  57. endif
  58. if USE_GORDON
  59. BUILT_SOURCES += \
  60. microbenchs/sync_and_notify_data_gordon_kernels.spuelf \
  61. microbenchs/null_kernel_gordon.spuelf
  62. endif