Browse Source

Use STARPU_SKIP_IF_VALGRIND in tests/core/insert_task.

We just have to make sure we called starpu_codelet_unpack_args before.
Cyril Roelandt 13 years ago
parent
commit
a8c654ac78
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/core/insert_task.c

+ 4 - 0
tests/core/insert_task.c

@@ -32,6 +32,10 @@ void func_cpu(void *descr[], void *_args)
 	float ffactor;
 
 	starpu_codelet_unpack_args(_args, &ifactor, &ffactor);
+	/*
+	 * It is safe to use STARPU_SKIP_IF_VALGRIND here
+	 */
+	STARPU_SKIP_IF_VALGRIND;
         *x0 = *x0 * ifactor;
         *x1 = *x1 * ffactor;
 }