Explorar el Código

field cl_arg_size of struct starpu_task is only used by the cell driver, remove it

Nathalie Furmento hace 12 años
padre
commit
d2c62a5477

+ 0 - 2
doc/chapters/advanced-examples.texi

@@ -256,7 +256,6 @@ for (i=0; i<starpu_data_get_nb_children(handle); i++) @{
     task->cl = &cl;
     task->synchronous = 1;
     task->cl_arg = &factor;
-    task->cl_arg_size = sizeof(factor);
 
     starpu_task_submit(task);
 @}
@@ -607,7 +606,6 @@ starpu_codelet_pack_args(&arg_buffer, &arg_buffer_size,
                     STARPU_VALUE, &ffactor, sizeof(ffactor),
                     0);
 task->cl_arg = arg_buffer;
-task->cl_arg_size = arg_buffer_size;
 int ret = starpu_task_submit(task);
 @end smallexample
 

+ 1 - 5
doc/chapters/basic-examples.texi

@@ -221,7 +221,6 @@ int main(int argc, char **argv)
 
     struct params params = @{ 1, 2.0f @};
     task->cl_arg = &params;
-    task->cl_arg_size = sizeof(params);
 
     task->callback_func = callback_func;
     task->callback_arg = 0x42;
@@ -257,8 +256,7 @@ kernel should be offloaded on the different architectures, and the task
 structure is a wrapper containing a codelet and the piece of data on which the
 codelet should operate.
 
-The optional @code{cl_arg} field is a pointer to a buffer (of size
-@code{cl_arg_size}) with some parameters for the kernel
+The optional @code{cl_arg} field is a pointer to a buffer with some parameters for the kernel
 described by the codelet. For instance, if a codelet implements a computational
 kernel that multiplies its input vector by a constant, the constant could be
 specified by the means of this buffer, instead of registering it as a StarPU
@@ -627,7 +625,6 @@ struct starpu_task *task = starpu_task_create();
 task->cl = &cl;                      /* @b{Pointer to the codelet defined below} */
 task->handles[0] = vector_handle;    /* @b{First parameter of the codelet} */
 task->cl_arg = &factor;
-task->cl_arg_size = sizeof(factor);
 task->synchronous = 1;
 
 starpu_task_submit(task);
@@ -888,7 +885,6 @@ int main(int argc, char **argv)
     task->cl = &cl;
     task->handles[0] = vector_handle;
     task->cl_arg = &factor;
-    task->cl_arg_size = sizeof(factor);
 @end smallexample
 @end cartouche
 

+ 0 - 1
doc/chapters/vector_scal_c.texi

@@ -94,7 +94,6 @@ int main(int argc, char **argv)
      * READ-ONLY buffer and that the codelet may be given a pointer to a
      * COPY of the argument */
     task->cl_arg = &factor;
-    task->cl_arg_size = sizeof(factor);
 
     /* execute the task on any eligible computational ressource */
     starpu_task_submit(task);

+ 1 - 2
doc/tutorial/hello_world.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  * Copyright (C) 2010, 2011  Université de Bordeaux 1
  *
  * Redistribution  and  use  in  source and binary forms, with or without
@@ -65,7 +65,6 @@ int main(int argc, char **argv)
 
     struct params params = { 1, 2.0f };
     task->cl_arg = &params;
-    task->cl_arg_size = sizeof(params);
 
     task->callback_func = callback_func;
     task->callback_arg = 0x42;

+ 0 - 1
doc/tutorial/vector_scal.c

@@ -114,7 +114,6 @@ int main(int argc, char **argv)
      * READ-ONLY buffer and that the codelet may be given a pointer to a
      * COPY of the argument */
     task->cl_arg = &factor;
-    task->cl_arg_size = sizeof(factor);
 
     /* execute the task on any eligible computational ressource */
     starpu_task_submit(task);