瀏覽代碼

mpi: field where of struct starpu_codelet is optional, no longer set it

Nathalie Furmento 12 年之前
父節點
當前提交
1357b7fb73

+ 0 - 3
mpi/examples/matrix_decomposition/mpi_cholesky_codelets.c

@@ -29,7 +29,6 @@
 
 static struct starpu_codelet cl11 =
 {
-	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {chol_cpu_codelet_update_u11, NULL},
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {chol_cublas_codelet_update_u11, NULL},
@@ -41,7 +40,6 @@ static struct starpu_codelet cl11 =
 
 static struct starpu_codelet cl21 =
 {
-	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {chol_cpu_codelet_update_u21, NULL},
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {chol_cublas_codelet_update_u21, NULL},
@@ -53,7 +51,6 @@ static struct starpu_codelet cl21 =
 
 static struct starpu_codelet cl22 =
 {
-	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {chol_cpu_codelet_update_u22, NULL},
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {chol_cublas_codelet_update_u22, NULL},

+ 0 - 1
mpi/examples/stencil/stencil5.c

@@ -31,7 +31,6 @@ void stencil5_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 struct starpu_codelet stencil5_cl =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {stencil5_cpu, NULL},
 	.nbuffers = 5,
 	.modes = {STARPU_RW, STARPU_R, STARPU_R, STARPU_R, STARPU_R}

+ 0 - 1
mpi/tests/insert_task.c

@@ -29,7 +29,6 @@ void func_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 struct starpu_codelet mycodelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_RW, STARPU_R}

+ 0 - 1
mpi/tests/insert_task_block.c

@@ -46,7 +46,6 @@ void func_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 struct starpu_codelet mycodelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 1,
 	.modes = {STARPU_RW}

+ 0 - 1
mpi/tests/insert_task_cache.c

@@ -33,7 +33,6 @@ void func_cpu(__attribute__ ((unused)) void *descr[], __attribute__ ((unused)) v
 
 struct starpu_codelet mycodelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_RW, STARPU_R}

+ 0 - 5
mpi/tests/insert_task_owner.c

@@ -32,7 +32,6 @@ void func_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 struct starpu_codelet mycodelet_r_w =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_R, STARPU_W}
@@ -40,7 +39,6 @@ struct starpu_codelet mycodelet_r_w =
 
 struct starpu_codelet mycodelet_rw_r =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_RW, STARPU_R}
@@ -48,7 +46,6 @@ struct starpu_codelet mycodelet_rw_r =
 
 struct starpu_codelet mycodelet_rw_rw =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_RW, STARPU_RW}
@@ -56,7 +53,6 @@ struct starpu_codelet mycodelet_rw_rw =
 
 struct starpu_codelet mycodelet_w_r =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_W, STARPU_R}
@@ -64,7 +60,6 @@ struct starpu_codelet mycodelet_w_r =
 
 struct starpu_codelet mycodelet_r_r =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_R, STARPU_R}

+ 0 - 1
mpi/tests/insert_task_owner2.c

@@ -39,7 +39,6 @@ void func_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 struct starpu_codelet mycodelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 4,
 	.modes = {STARPU_R, STARPU_RW, STARPU_W, STARPU_W}

+ 0 - 1
mpi/tests/insert_task_owner_data.c

@@ -29,7 +29,6 @@ void func_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 struct starpu_codelet mycodelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_RW, STARPU_RW}

+ 0 - 4
mpi/tests/mpi_reduction.c

@@ -24,7 +24,6 @@ extern void display_cpu_func(void *descr[], void *cl_arg);
 
 static struct starpu_codelet init_codelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {init_cpu_func, NULL},
 	.nbuffers = 1,
 	.name = "init_codelet"
@@ -32,7 +31,6 @@ static struct starpu_codelet init_codelet =
 
 static struct starpu_codelet redux_codelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {redux_cpu_func, NULL},
 	.nbuffers = 2,
 	.name = "redux_codelet"
@@ -40,7 +38,6 @@ static struct starpu_codelet redux_codelet =
 
 static struct starpu_codelet dot_codelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {dot_cpu_func, NULL},
 	.nbuffers = 2,
 	.modes = {STARPU_R, STARPU_REDUX},
@@ -49,7 +46,6 @@ static struct starpu_codelet dot_codelet =
 
 static struct starpu_codelet display_codelet =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {display_cpu_func, NULL},
 	.nbuffers = 1,
 	.modes = {STARPU_R},

+ 0 - 1
mpi/tests/mpi_scatter_gather.c

@@ -48,7 +48,6 @@ void cpu_codelet(void *descr[], void *_args)
 
 static struct starpu_codelet cl =
 {
-	.where = STARPU_CPU,
 	.cpu_funcs = {cpu_codelet, NULL},
 	.nbuffers = 1,
 	.modes = {STARPU_RW},

+ 0 - 1
mpi/tests/ring.c

@@ -39,7 +39,6 @@ void increment_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 static struct starpu_codelet increment_cl =
 {
-	.where = STARPU_CPU|STARPU_CUDA,
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {increment_cuda, NULL},
 #endif

+ 0 - 1
mpi/tests/ring_async.c

@@ -39,7 +39,6 @@ void increment_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 static struct starpu_codelet increment_cl =
 {
-	.where = STARPU_CPU|STARPU_CUDA,
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {increment_cuda, NULL},
 #endif

+ 0 - 1
mpi/tests/ring_async_implicit.c

@@ -39,7 +39,6 @@ void increment_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 
 static struct starpu_codelet increment_cl =
 {
-	.where = STARPU_CPU|STARPU_CUDA,
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {increment_cuda, NULL},
 #endif