浏览代码

merge last part

Andra Hugo 14 年之前
父节点
当前提交
aed0efef0f

+ 6 - 4
examples/Makefile.am

@@ -13,21 +13,23 @@
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 #
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
-AUTOMAKE_OPTIONS = subdir-objects
+
 AM_CFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
 AM_CFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
 LIBS = $(top_builddir)/src/libstarpu.la $(MAGMA_LIBS) $(HWLOC_LIBS) @LIBS@
 LIBS = $(top_builddir)/src/libstarpu.la $(MAGMA_LIBS) $(HWLOC_LIBS) @LIBS@
 AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
 AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
 AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
 AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
 
 
-SUBDIRS = stencil
+#SUBDIRS = stencil
+
+AUTOMAKE_OPTIONS = subdir-objects
 
 
 if STARPU_USE_SOCL
 if STARPU_USE_SOCL
-SUBDIRS += socl
+SUBDIRS = socl
 endif
 endif
 
 
 if STARPU_HAVE_FFTW
 if STARPU_HAVE_FFTW
 if STARPU_HAVE_FFTWF
 if STARPU_HAVE_FFTWF
-SUBDIRS += starpufft
+SUBDIRS = starpufft
 endif
 endif
 endif
 endif
 
 

+ 13 - 13
examples/cholesky_and_lu/cholesky/cholesky_implicit.c

@@ -150,17 +150,15 @@ static double cholesky(float *matA, unsigned size, unsigned ld, unsigned nblocks
 	 * one block is now determined by 2 unsigned (i,j) */
 	 * one block is now determined by 2 unsigned (i,j) */
 	starpu_matrix_data_register(&dataA, 0, (uintptr_t)matA, ld, size, size, sizeof(float));
 	starpu_matrix_data_register(&dataA, 0, (uintptr_t)matA, ld, size, size, sizeof(float));
 
 
-	struct starpu_data_filter f;
-		f.filter_func = starpu_vertical_block_filter_func;
-		f.nchildren = nblocks;
-		f.get_nchildren = NULL;
-		f.get_child_ops = NULL;
-
-	struct starpu_data_filter f2;
-		f2.filter_func = starpu_block_filter_func;
-		f2.nchildren = nblocks;
-		f2.get_nchildren = NULL;
-		f2.get_child_ops = NULL;
+	struct starpu_data_filter f = {
+		.filter_func = starpu_vertical_block_filter_func,
+		.nchildren = nblocks
+	};
+
+	struct starpu_data_filter f2 = {
+		.filter_func = starpu_block_filter_func,
+		.nchildren = nblocks
+	};
 
 
 	starpu_data_map_filters(dataA, 2, &f, &f2);
 	starpu_data_map_filters(dataA, 2, &f, &f2);
 	double gflops = _cholesky(dataA, nblocks, sched_ctx, timing);
 	double gflops = _cholesky(dataA, nblocks, sched_ctx, timing);
@@ -184,7 +182,9 @@ double run_cholesky_implicit(unsigned sched_ctx, int start, int argc, char **arg
 	//	starpu_helper_cublas_init();
 	//	starpu_helper_cublas_init();
 
 
 	float *mat;
 	float *mat;
-	starpu_data_malloc_pinned_if_possible((void **)&mat, (size_t)size*size*sizeof(float));
+
+	starpu_malloc((void **)&mat, (size_t)size*size*sizeof(float));
+
 	unsigned i,j;
 	unsigned i,j;
 	for (i = 0; i < size; i++)
 	for (i = 0; i < size; i++)
 	{
 	{
@@ -285,7 +285,7 @@ double run_cholesky_implicit(unsigned sched_ctx, int start, int argc, char **arg
 			}
 			}
 	        }
 	        }
 	}
 	}
-	starpu_data_free_pinned_if_possible((void *)mat);
+	starpu_free((void *)mat);
 	//	starpu_helper_cublas_shutdown();
 	//	starpu_helper_cublas_shutdown();
 	//	starpu_shutdown();
 	//	starpu_shutdown();
 
 

+ 47 - 354
tests/Makefile.am

@@ -2,7 +2,7 @@
 #
 #
 # Copyright (C) 2009, 2010, 2011  Université de Bordeaux 1
 # Copyright (C) 2009, 2010, 2011  Université de Bordeaux 1
 # Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
 # Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
-# Copyright (C) 2010  Institut National de Recherche en Informatique et Automatique
+# Copyright (C) 2010, 2011  Institut National de Recherche en Informatique et Automatique
 #
 #
 # StarPU is free software; you can redistribute it and/or modify
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
 # it under the terms of the GNU Lesser General Public License as published by
@@ -15,9 +15,10 @@
 #
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
 
-AM_CFLAGS = $(HWLOC_CFLAGS) -Wall
+AM_CFLAGS = $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
 LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
 LIBS = $(top_builddir)/src/libstarpu.la $(HWLOC_LIBS) @LIBS@
-AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/src/
+AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_builddir)/src -I$(top_srcdir)/src/
+AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
 
 
 EXTRA_DIST =					\
 EXTRA_DIST =					\
 	microbenchs/null_kernel_gordon.c	\
 	microbenchs/null_kernel_gordon.c	\
@@ -31,6 +32,7 @@ CLEANFILES = 					\
 	datawizard/sync_and_notify_data_gordon_kernels.spuelf
 	datawizard/sync_and_notify_data_gordon_kernels.spuelf
 
 
 BUILT_SOURCES =
 BUILT_SOURCES =
+SUBDIRS =
 
 
 if STARPU_USE_OPENCL
 if STARPU_USE_OPENCL
 nobase_STARPU_OPENCL_DATA_DATA =
 nobase_STARPU_OPENCL_DATA_DATA =
@@ -71,21 +73,26 @@ SPU_LD ?= spu-ld
 
 
 endif
 endif
 
 
-
 testbindir = $(libdir)/starpu/tests
 testbindir = $(libdir)/starpu/tests
-testbin_PROGRAMS =
 
 
-SUBDIRS =
+#####################################
+# What to install and what to check #
+#####################################
 
 
-TESTS = $(check_PROGRAMS)
+if !STARPU_HAVE_WINDOWS
+## test loader program
+LOADER			=	loader
+LOADER_BIN		=	$(abs_top_builddir)/tests/$(LOADER)
+TESTS_ENVIRONMENT	=	$(LOADER_BIN)
+endif
+
+TESTS = $(noinst_PROGRAMS)
 
 
 if STARPU_COVERAGE_ENABLED
 if STARPU_COVERAGE_ENABLED
 TESTS	+=	coverage/coverage.sh
 TESTS	+=	coverage/coverage.sh
 endif
 endif
 
 
-check_PROGRAMS =
-
-check_PROGRAMS += 				\
+noinst_PROGRAMS =				\
 	core/restart				\
 	core/restart				\
 	core/execute_on_a_specific_worker	\
 	core/execute_on_a_specific_worker	\
 	core/insert_task			\
 	core/insert_task			\
@@ -110,9 +117,12 @@ check_PROGRAMS += 				\
 	core/declare_deps_after_submission	\
 	core/declare_deps_after_submission	\
 	core/declare_deps_after_submission_synchronous	\
 	core/declare_deps_after_submission_synchronous	\
 	core/get_current_task			\
 	core/get_current_task			\
+	datawizard/acquire_cb			\
+	datawizard/acquire_cb_insert		\
 	datawizard/acquire_release		\
 	datawizard/acquire_release		\
 	datawizard/acquire_release2		\
 	datawizard/acquire_release2		\
 	datawizard/data_implicit_deps		\
 	datawizard/data_implicit_deps		\
+	datawizard/data_lookup			\
 	datawizard/scratch			\
 	datawizard/scratch			\
 	datawizard/sync_and_notify_data		\
 	datawizard/sync_and_notify_data		\
 	datawizard/sync_and_notify_data_implicit\
 	datawizard/sync_and_notify_data_implicit\
@@ -133,6 +143,8 @@ check_PROGRAMS += 				\
 	datawizard/critical_section_with_void_interface\
 	datawizard/critical_section_with_void_interface\
 	datawizard/increment_redux		\
 	datawizard/increment_redux		\
 	datawizard/increment_redux_v2		\
 	datawizard/increment_redux_v2		\
+	datawizard/handle_to_pointer		\
+	datawizard/lazy_allocation		\
 	errorcheck/starpu_init_noworker		\
 	errorcheck/starpu_init_noworker		\
 	errorcheck/invalid_blocking_calls	\
 	errorcheck/invalid_blocking_calls	\
 	errorcheck/invalid_tasks		\
 	errorcheck/invalid_tasks		\
@@ -154,128 +166,16 @@ check_PROGRAMS += 				\
 	perfmodels/regression_based		\
 	perfmodels/regression_based		\
 	perfmodels/non_linear_regression_based
 	perfmodels/non_linear_regression_based
 
 
-testbin_PROGRAMS +=				\
-	core/restart
-core_restart_SOURCES =				\
-	core/restart.c
-
-testbin_PROGRAMS +=				\
-	core/execute_on_a_specific_worker
-core_execute_on_a_specific_worker_SOURCES = 	\
-	core/execute_on_a_specific_worker.c
-
-testbin_PROGRAMS +=				\
-	core/insert_task
-core_insert_task_SOURCES =			\
-	core/insert_task.c
-
-testbin_PROGRAMS +=				\
-	core/multithreaded
-core_multithreaded_SOURCES =			\
-	core/multithreaded.c
-
-testbin_PROGRAMS +=				\
-	core/multithreaded_init
-core_multithreaded_init_SOURCES =			\
-	core/multithreaded_init.c
-
-testbin_PROGRAMS +=				\
-	core/starpu_task_wait_for_all
-core_starpu_task_wait_for_all_SOURCES =		\
-	core/starpu_task_wait_for_all.c
-
-testbin_PROGRAMS +=				\
-	core/starpu_task_wait
-core_starpu_task_wait_SOURCES =			\
-	core/starpu_task_wait.c
-
-testbin_PROGRAMS +=				\
-	core/static_restartable
-core_static_restartable_SOURCES =		\
-	core/static_restartable.c
-
-testbin_PROGRAMS +=				\
-	core/static_restartable_using_initializer
-core_static_restartable_using_initializer_SOURCES =		\
-	core/static_restartable_using_initializer.c
-
-testbin_PROGRAMS +=				\
-	core/static_restartable_tag
-core_static_restartable_tag_SOURCES =		\
-	core/static_restartable_tag.c
-
-testbin_PROGRAMS +=				\
-	core/regenerate
-core_regenerate_SOURCES =			\
-	core/regenerate.c
-
-testbin_PROGRAMS +=				\
-	core/wait_all_regenerable_tasks
-core_wait_all_regenerable_tasks_SOURCES =	\
-	core/wait_all_regenerable_tasks.c
-
-testbin_PROGRAMS +=				\
-	core/subgraph_repeat
-core_subgraph_repeat_SOURCES =			\
-	core/subgraph_repeat.c
-
-testbin_PROGRAMS +=				\
-	core/subgraph_repeat_regenerate
-core_subgraph_repeat_regenerate_SOURCES =	\
-	core/subgraph_repeat_regenerate.c
-
-testbin_PROGRAMS +=				\
-	core/empty_task
-core_empty_task_SOURCES =			\
-	core/empty_task.c
-
-testbin_PROGRAMS +=				\
-	core/empty_task_sync_point
-core_empty_task_sync_point_SOURCES =		\
-	core/empty_task_sync_point.c
-
-testbin_PROGRAMS +=				\
-	core/empty_task_sync_point_tasks
-core_empty_task_sync_point_tasks_SOURCES =	\
-	core/empty_task_sync_point_tasks.c
-
-testbin_PROGRAMS +=				\
-	core/empty_task_chain
-core_empty_task_chain_SOURCES =			\
-	core/empty_task_chain.c
-
-testbin_PROGRAMS +=				\
-	core/tag_wait_api
-core_tag_wait_api_SOURCES =			\
-	core/tag_wait_api.c
-
-testbin_PROGRAMS +=				\
-	core/task_wait_api
-core_task_wait_api_SOURCES =			\
-	core/task_wait_api.c
-
-testbin_PROGRAMS +=				\
-	core/declare_deps_in_callback
-core_declare_deps_in_callback_SOURCES =		\
-	core/declare_deps_in_callback.c
-
-testbin_PROGRAMS +=				\
-	core/declare_deps_after_submission
-core_declare_deps_after_submission_SOURCES =	\
-	core/declare_deps_after_submission.c
-
-testbin_PROGRAMS +=				\
-	core/declare_deps_after_submission_synchronous
-core_declare_deps_after_submission_synchronous_SOURCES =	\
-	core/declare_deps_after_submission_synchronous.c
-
-testbin_PROGRAMS +=				\
-	core/get_current_task
-core_get_current_task_SOURCES =			\
-	core/get_current_task.c
-
-testbin_PROGRAMS +=				\
-	datawizard/acquire_release
+if STARPU_HAVE_WINDOWS
+check_PROGRAMS = $(noinst_PROGRAMS)
+else
+check_PROGRAMS = $(LOADER) $(noinst_PROGRAMS)
+endif
+
+#######################
+# Source files        #
+#######################
+
 datawizard_acquire_release_SOURCES =		\
 datawizard_acquire_release_SOURCES =		\
 	datawizard/acquire_release.c
 	datawizard/acquire_release.c
 if STARPU_USE_CUDA
 if STARPU_USE_CUDA
@@ -283,8 +183,6 @@ datawizard_acquire_release_SOURCES +=		\
 	datawizard/acquire_release_cuda.cu
 	datawizard/acquire_release_cuda.cu
 endif
 endif
 
 
-testbin_PROGRAMS +=				\
-	datawizard/acquire_release2
 datawizard_acquire_release2_SOURCES =		\
 datawizard_acquire_release2_SOURCES =		\
 	datawizard/acquire_release2.c
 	datawizard/acquire_release2.c
 if STARPU_USE_CUDA
 if STARPU_USE_CUDA
@@ -292,262 +190,57 @@ datawizard_acquire_release2_SOURCES +=		\
 	datawizard/acquire_release_cuda.cu
 	datawizard/acquire_release_cuda.cu
 endif
 endif
 
 
-testbin_PROGRAMS +=				\
-	datawizard/data_implicit_deps
-datawizard_data_implicit_deps_SOURCES =		\
-	datawizard/data_implicit_deps.c
-
-testbin_PROGRAMS +=				\
-	datawizard/scratch
 datawizard_scratch_SOURCES =			\
 datawizard_scratch_SOURCES =			\
 	datawizard/scratch.c
 	datawizard/scratch.c
-
 if STARPU_USE_CUDA
 if STARPU_USE_CUDA
 datawizard_scratch_SOURCES +=		\
 datawizard_scratch_SOURCES +=		\
 	datawizard/scratch_cuda.cu
 	datawizard/scratch_cuda.cu
 endif
 endif
 
 
-testbin_PROGRAMS +=				\
-	datawizard/dsm_stress
-datawizard_dsm_stress_SOURCES =			\
-	datawizard/dsm_stress.c
-
-testbin_PROGRAMS +=				\
-	datawizard/write_only_tmp_buffer
-datawizard_write_only_tmp_buffer_SOURCES =	\
-	datawizard/write_only_tmp_buffer.c
-
-testbin_PROGRAMS +=				\
-	datawizard/data_invalidation
-datawizard_data_invalidation_SOURCES =	\
-	datawizard/data_invalidation.c
-
-testbin_PROGRAMS +=				\
-	datawizard/dining_philosophers
-datawizard_dining_philosophers_SOURCES = 	\
-	datawizard/dining_philosophers.c
-
-testbin_PROGRAMS +=				\
-	datawizard/manual_reduction
-datawizard_manual_reduction_SOURCES = 		\
-	datawizard/manual_reduction.c
-
-testbin_PROGRAMS +=				\
-	datawizard/readers_and_writers
-datawizard_readers_and_writers_SOURCES = 	\
-	datawizard/readers_and_writers.c
-
-testbin_PROGRAMS +=				\
-	datawizard/unpartition
-datawizard_unpartition_SOURCES =		\
-	datawizard/unpartition.c
-
-testbin_PROGRAMS +=				\
-	datawizard/user_interaction_implicit
-datawizard_user_interaction_implicit_SOURCES =	\
-	datawizard/user_interaction_implicit.c
-
-testbin_PROGRAMS +=				\
-	datawizard/reclaim
-datawizard_reclaim_SOURCES =			\
-	datawizard/reclaim.c
-
-testbin_PROGRAMS +=				\
-	datawizard/sync_with_data_with_mem
-datawizard_sync_with_data_with_mem_SOURCES =	\
-	datawizard/sync_with_data_with_mem.c
-
-testbin_PROGRAMS +=				\
-	datawizard/sync_with_data_with_mem_non_blocking
-datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
-	datawizard/sync_with_data_with_mem_non_blocking.c
-
-testbin_PROGRAMS +=				\
-	datawizard/sync_with_data_with_mem_non_blocking_implicit
-datawizard_sync_with_data_with_mem_non_blocking_implicit_SOURCES = \
-	datawizard/sync_with_data_with_mem_non_blocking_implicit.c
-
-testbin_PROGRAMS +=				\
-	datawizard/mpi_like
-datawizard_mpi_like_SOURCES =			\
+datawizard_mpi_like_SOURCES =		\
 	datawizard/mpi_like.c
 	datawizard/mpi_like.c
-
-testbin_PROGRAMS +=				\
-	datawizard/mpi_like_async
-datawizard_mpi_like_async_SOURCES =		\
-	datawizard/mpi_like_async.c
-
-testbin_PROGRAMS +=				\
-	datawizard/critical_section_with_void_interface
-datawizard_critical_section_with_void_interface_SOURCES =	\
-	datawizard/critical_section_with_void_interface.c
-
-testbin_PROGRAMS +=				\
-	datawizard/increment_redux
-
-datawizard_increment_redux_SOURCES =		\
-	datawizard/increment_redux.c
-
-testbin_PROGRAMS +=				\
-	datawizard/increment_redux_v2
-
-datawizard_increment_redux_v2_SOURCES =		\
-	datawizard/increment_redux_v2.c
-
 if STARPU_USE_CUDA
 if STARPU_USE_CUDA
 datawizard_mpi_like_SOURCES +=			\
 datawizard_mpi_like_SOURCES +=			\
 	datawizard/cuda_codelet_unsigned_inc.cu
 	datawizard/cuda_codelet_unsigned_inc.cu
+endif
 
 
+datawizard_mpi_like_async_SOURCES =		\
+	datawizard/mpi_like_async.c
+if STARPU_USE_CUDA
 datawizard_mpi_like_async_SOURCES +=		\
 datawizard_mpi_like_async_SOURCES +=		\
 	datawizard/cuda_codelet_unsigned_inc.cu
 	datawizard/cuda_codelet_unsigned_inc.cu
 endif
 endif
 
 
-testbin_PROGRAMS +=				\
-	errorcheck/starpu_init_noworker
-errorcheck_starpu_init_noworker_SOURCES =	\
-	errorcheck/starpu_init_noworker.c
-
-testbin_PROGRAMS +=				\
-	errorcheck/invalid_blocking_calls
-errorcheck_invalid_blocking_calls_SOURCES =	\
-	errorcheck/invalid_blocking_calls.c
-
-testbin_PROGRAMS +=				\
-	errorcheck/invalid_tasks
-errorcheck_invalid_tasks_SOURCES =		\
-	errorcheck/invalid_tasks.c
-
-testbin_PROGRAMS +=				\
-	helper/cublas_init
-helper_cublas_init_SOURCES =			\
-	helper/cublas_init.c
-
-testbin_PROGRAMS +=				\
-	helper/starpu_data_cpy
-helper_starpu_data_cpy_SOURCES =		\
-	helper/starpu_data_cpy.c
-
-testbin_PROGRAMS +=				\
-	helper/pinned_memory
-helper_pinned_memory_SOURCES =			\
-	helper/pinned_memory.c
-
-testbin_PROGRAMS +=				\
-	helper/execute_on_all
-helper_execute_on_all_SOURCES =			\
-	helper/execute_on_all.c
-
-testbin_PROGRAMS +=				\
-	helper/starpu_create_sync_task
-helper_starpu_create_sync_task_SOURCES =	\
-	helper/starpu_create_sync_task.c
-
-testbin_PROGRAMS +=				\
-	microbenchs/async_tasks_overhead
-microbenchs_async_tasks_overhead_SOURCES =	\
-	microbenchs/async_tasks_overhead.c
-
-testbin_PROGRAMS +=				\
-	microbenchs/sync_tasks_overhead
-microbenchs_sync_tasks_overhead_SOURCES =	\
-	microbenchs/sync_tasks_overhead.c
-
-testbin_PROGRAMS +=				\
-	microbenchs/tasks_overhead
-microbenchs_tasks_overhead_SOURCES =		\
-	microbenchs/tasks_overhead.c
-
-testbin_PROGRAMS +=				\
-	microbenchs/prefetch_data_on_node
-microbenchs_prefetch_data_on_node_SOURCES =	\
-	microbenchs/prefetch_data_on_node.c
-
-testbin_PROGRAMS +=				\
-	datawizard/sync_and_notify_data
 datawizard_sync_and_notify_data_SOURCES =	\
 datawizard_sync_and_notify_data_SOURCES =	\
 	datawizard/sync_and_notify_data.c
 	datawizard/sync_and_notify_data.c
-
-testbin_PROGRAMS +=				\
-	datawizard/sync_and_notify_data_implicit
-datawizard_sync_and_notify_data_implicit_SOURCES =	\
-	datawizard/sync_and_notify_data_implicit.c
-
-testbin_PROGRAMS +=				\
-	microbenchs/redundant_buffer
-microbenchs_redundant_buffer_SOURCES =		\
-	microbenchs/redundant_buffer.c
-
-testbin_PROGRAMS +=				\
-	microbenchs/display_structures_size
-microbenchs_display_structures_size_SOURCES =	\
-	microbenchs/display_structures_size.c
-
-testbin_PROGRAMS +=				\
-	microbenchs/local_pingpong
-microbenchs_local_pingpong_SOURCES =		\
-	microbenchs/local_pingpong.c
-
 if STARPU_USE_CUDA
 if STARPU_USE_CUDA
 datawizard_sync_and_notify_data_SOURCES +=	\
 datawizard_sync_and_notify_data_SOURCES +=	\
 	datawizard/sync_and_notify_data_kernels.cu
 	datawizard/sync_and_notify_data_kernels.cu
-
-datawizard_sync_and_notify_data_implicit_SOURCES +=	\
-	datawizard/sync_and_notify_data_kernels.cu
 endif
 endif
-
 if STARPU_USE_OPENCL
 if STARPU_USE_OPENCL
 datawizard_sync_and_notify_data_SOURCES +=	\
 datawizard_sync_and_notify_data_SOURCES +=	\
 	datawizard/sync_and_notify_data_opencl.c
 	datawizard/sync_and_notify_data_opencl.c
+nobase_STARPU_OPENCL_DATA_DATA += \
+	datawizard/sync_and_notify_data_opencl_codelet.cl
+endif
 
 
+datawizard_sync_and_notify_data_implicit_SOURCES =	\
+	datawizard/sync_and_notify_data_implicit.c
+if STARPU_USE_CUDA
+datawizard_sync_and_notify_data_implicit_SOURCES +=	\
+	datawizard/sync_and_notify_data_kernels.cu
+endif
+if STARPU_USE_OPENCL
 datawizard_sync_and_notify_data_implicit_SOURCES +=	\
 datawizard_sync_and_notify_data_implicit_SOURCES +=	\
 	datawizard/sync_and_notify_data_opencl.c
 	datawizard/sync_and_notify_data_opencl.c
-nobase_STARPU_OPENCL_DATA_DATA += \
-	datawizard/sync_and_notify_data_opencl_codelet.cl
 endif
 endif
 
 
 if STARPU_USE_GORDON
 if STARPU_USE_GORDON
 datawizard_sync_and_notify_data_SOURCES +=	\
 datawizard_sync_and_notify_data_SOURCES +=	\
 	datawizard/sync_and_notify_data_gordon_kernels.c
 	datawizard/sync_and_notify_data_gordon_kernels.c
-
 datawizard_sync_and_notify_data_implicit_SOURCES +=	\
 datawizard_sync_and_notify_data_implicit_SOURCES +=	\
 	datawizard/sync_and_notify_data_gordon_kernels.c
 	datawizard/sync_and_notify_data_gordon_kernels.c
-
 BUILT_SOURCES += 						\
 BUILT_SOURCES += 						\
 	datawizard/sync_and_notify_data_gordon_kernels.spuelf	\
 	datawizard/sync_and_notify_data_gordon_kernels.spuelf	\
 	microbenchs/null_kernel_gordon.spuelf
 	microbenchs/null_kernel_gordon.spuelf
 endif
 endif
-
-testbin_PROGRAMS +=				\
-	overlap/overlap
-overlap_overlap_SOURCES =			\
-	overlap/overlap.c
-
-testbin_PROGRAMS +=					\
-	parallel_tasks/explicit_combined_worker
-parallel_tasks_explicit_combined_worker_SOURCES =	\
-	parallel_tasks/explicit_combined_worker.c
-
-testbin_PROGRAMS +=				\
-	parallel_tasks/parallel_kernels
-parallel_tasks_parallel_kernels_SOURCES =	\
-	parallel_tasks/parallel_kernels.c
-
-testbin_PROGRAMS +=				\
-	parallel_tasks/parallel_kernels_spmd
-parallel_tasks_parallel_kernels_spmd_SOURCES =	\
-	parallel_tasks/parallel_kernels_spmd.c
-
-testbin_PROGRAMS +=				\
-	parallel_tasks/spmd_pgreedy
-parallel_tasks_spmd_pgreedy_SOURCES =	\
-	parallel_tasks/spmd_pgreedy.c
-
-testbin_PROGRAMS +=				\
-	perfmodels/regression_based
-perfmodels_regression_based_SOURCES = 		\
-	perfmodels/regression_based.c
-
-testbin_PROGRAMS +=				\
-	perfmodels/non_linear_regression_based
-perfmodels_non_linear_regression_based_SOURCES = \
-	perfmodels/non_linear_regression_based.c

+ 1 - 1
tests/datawizard/sync_and_notify_data.c

@@ -89,7 +89,7 @@ int main(int argc, char **argv)
 #endif
 #endif
 
 
 #ifdef STARPU_USE_OPENCL
 #ifdef STARPU_USE_OPENCL
-        starpu_opencl_load_opencl_from_file("tests/datawizard/sync_and_notify_data_opencl_codelet.cl", &opencl_code);
+        starpu_opencl_load_opencl_from_file("tests/datawizard/sync_and_notify_data_opencl_codelet.cl", &opencl_code, NULL);
 #endif
 #endif
 
 
         starpu_vector_data_register(&v_handle, 0, (uintptr_t)v, VECTORSIZE, sizeof(unsigned));
         starpu_vector_data_register(&v_handle, 0, (uintptr_t)v, VECTORSIZE, sizeof(unsigned));

+ 1 - 1
tests/datawizard/sync_and_notify_data_implicit.c

@@ -123,7 +123,7 @@ int main(int argc, char **argv)
 #endif
 #endif
 
 
 #ifdef STARPU_USE_OPENCL
 #ifdef STARPU_USE_OPENCL
-        starpu_opencl_load_opencl_from_file("tests/datawizard/sync_and_notify_data_opencl_codelet.cl", &opencl_code);
+        starpu_opencl_load_opencl_from_file("tests/datawizard/sync_and_notify_data_opencl_codelet.cl", &opencl_code, NULL);
 #endif
 #endif
 
 
         starpu_vector_data_register(&v_handle, 0, (uintptr_t)v, VECTORSIZE, sizeof(unsigned));
         starpu_vector_data_register(&v_handle, 0, (uintptr_t)v, VECTORSIZE, sizeof(unsigned));