|
|
@@ -183,7 +183,7 @@ int _starpu_mpi_task_decode_v(struct starpu_codelet *codelet, int me, int nb_nod
|
|
|
{
|
|
|
va_list varg_list_copy;
|
|
|
int inconsistent_execute = 0;
|
|
|
- int arg_type, arg_type_nocommute;
|
|
|
+ int arg_type;
|
|
|
int node_selected = 0;
|
|
|
int nb_allocated_data = 16;
|
|
|
struct starpu_data_descr *descrs;
|
|
|
@@ -200,7 +200,7 @@ int _starpu_mpi_task_decode_v(struct starpu_codelet *codelet, int me, int nb_nod
|
|
|
va_copy(varg_list_copy, varg_list);
|
|
|
while ((arg_type = va_arg(varg_list_copy, int)) != 0)
|
|
|
{
|
|
|
- arg_type_nocommute = arg_type & ~STARPU_COMMUTE;
|
|
|
+ int arg_type_nocommute = arg_type & ~STARPU_COMMUTE;
|
|
|
if (arg_type==STARPU_EXECUTE_ON_NODE)
|
|
|
{
|
|
|
*xrank = va_arg(varg_list_copy, int);
|
|
|
@@ -434,7 +434,6 @@ int _starpu_mpi_task_decode_v(struct starpu_codelet *codelet, int me, int nb_nod
|
|
|
static
|
|
|
int _starpu_mpi_task_build_v(MPI_Comm comm, struct starpu_codelet *codelet, struct starpu_task **task, int *xrank_p, struct starpu_data_descr **descrs_p, int *nb_data_p, va_list varg_list)
|
|
|
{
|
|
|
- va_list varg_list_copy;
|
|
|
int me, do_execute, xrank, nb_nodes;
|
|
|
int ret;
|
|
|
int i;
|
|
|
@@ -468,6 +467,7 @@ int _starpu_mpi_task_build_v(MPI_Comm comm, struct starpu_codelet *codelet, stru
|
|
|
if (do_execute == 0) return 1;
|
|
|
else
|
|
|
{
|
|
|
+ va_list varg_list_copy;
|
|
|
_STARPU_MPI_DEBUG(100, "Execution of the codelet %p (%s)\n", codelet, codelet?codelet->name:NULL);
|
|
|
|
|
|
*task = starpu_task_create();
|