# # StarPU # Copyright (C) INRIA 2008-2009 (see AUTHORS file) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # See the GNU Lesser General Public License in COPYING.LGPL for more details. # LIBS = $(top_builddir)/src/libstarpu.la @LIBS@ AM_CPPFLAGS = -I$(top_srcdir)/include/ EXTRA_DIST = \ microbenchs/null_kernel_gordon.c \ microbenchs/sync_and_notify_data_gordon_kernels.c CLEANFILES = \ *.gcno *.gcda *.linkinfo \ microbenchs/null_kernel_gordon.spuelf \ microbenchs/sync_and_notify_data_gordon_kernels.spuelf BUILT_SOURCES = if USE_CUDA # TODO define NVCCFLAGS NVCC ?= nvcc NVCCFLAGS += -I$(top_srcdir)/include/ .cu.cubin: $(MKDIR_P) `dirname $@` $(NVCC) -cubin $< -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) .cu.o: $(MKDIR_P) `dirname $@` $(NVCC) $< -c -o $@ --compiler-options -fno-strict-aliasing $(NVCCFLAGS) -I${includedir} endif if USE_GORDON SPU_CC ?= spu-gcc SPU_LD ?= spu-ld .c.spuo: $(MKDIR_P) `dirname $@` $(SPU_CC) -c -fpic $< -o $@ .spuo.spuelf: $(MKDIR_P) `dirname $@` $(SPU_LD) $< -o $@ #BUILT_SOURCES += # microbenchs/null_kernel_gordon.spuelf endif SUBDIRS = TESTS = $(check_PROGRAMS) check_PROGRAMS = check_PROGRAMS += \ microbenchs/async-tasks-overhead \ microbenchs/sync-tasks-overhead \ microbenchs/tag-wait-api \ microbenchs/sync_and_notify_data microbenchs_async_tasks_overhead_SOURCES = \ microbenchs/async-tasks-overhead.c microbenchs_sync_tasks_overhead_SOURCES = \ microbenchs/sync-tasks-overhead.c microbenchs_tag_wait_api_SOURCES = \ microbenchs/tag-wait-api.c microbenchs_sync_and_notify_data_SOURCES = \ microbenchs/sync_and_notify_data.c if USE_CUDA microbenchs_sync_and_notify_data_SOURCES += \ microbenchs/sync_and_notify_data_kernels.cu endif if USE_GORDON microbenchs_sync_and_notify_data_SOURCES += \ microbenchs/sync_and_notify_data_gordon_kernels.c BUILT_SOURCES += \ microbenchs/sync_and_notify_data_gordon_kernels.spuelf \ microbenchs/null_kernel_gordon.spuelf endif