Makefile.am 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. if USE_CUDA
  20. # TODO define NVCCFLAGS
  21. NVCC ?= nvcc
  22. NVCCFLAGS += -I$(top_srcdir)/include/
  23. .cu.cubin:
  24. $(MKDIR_P) `dirname $@`
  25. $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS)
  26. .cu.o:
  27. $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir}
  28. endif
  29. SUBDIRS =
  30. TESTS = $(check_PROGRAMS)
  31. check_PROGRAMS =
  32. check_PROGRAMS += \
  33. microbenchs/async-tasks-overhead \
  34. microbenchs/sync-tasks-overhead \
  35. microbenchs/tag-wait-api \
  36. microbenchs/sync_and_notify_data
  37. microbenchs_async_tasks_overhead_SOURCES = \
  38. microbenchs/async-tasks-overhead.c
  39. microbenchs_sync_tasks_overhead_SOURCES = \
  40. microbenchs/sync-tasks-overhead.c
  41. microbenchs_tag_wait_api_SOURCES = \
  42. microbenchs/tag-wait-api.c
  43. if USE_CUDA
  44. microbenchs_sync_and_notify_data_SOURCES = \
  45. microbenchs/sync_and_notify_data.c \
  46. microbenchs/sync_and_notify_data_kernels.cu
  47. else
  48. microbenchs_sync_and_notify_data_SOURCES = \
  49. microbenchs/sync_and_notify_data.c
  50. endif