Makefile.am 1.6 KB

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