Ver código fonte

fix param of codelet which is a variable, not a vector

Corentin Salingue 8 anos atrás
pai
commit
2694f7995b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      mpi/tests/mpi_reduction_kernels.c

+ 1 - 1
mpi/tests/mpi_reduction_kernels.c

@@ -66,7 +66,7 @@ void dot_cpu_func(void *descr[], void *cl_arg)
  */
 void display_cpu_func(void *descr[], void *cl_arg)
 {
-	long int *local_x = (long int *)STARPU_VECTOR_GET_PTR(descr[0]);
+	long int *local_x = (long int *)STARPU_VARIABLE_GET_PTR(descr[0]);
 
 	FPRINTF_MPI(stderr, "Local=%ld\n", *local_x);
 }