|
@@ -21,42 +21,42 @@
|
|
|
|
|
|
/* The tasks under test. */
|
|
|
|
|
|
-static void my_pointer_task (int *x, long long *y) __attribute__ ((task));
|
|
|
+static void my_pointer_task (const int *x, long long *y) __attribute__ ((task));
|
|
|
|
|
|
-static void my_pointer_task_cpu (int *, long long *)
|
|
|
+static void my_pointer_task_cpu (const int *, long long *)
|
|
|
__attribute__ ((task_implementation ("cpu", my_pointer_task)));
|
|
|
-static void my_pointer_task_opencl (int *, long long *)
|
|
|
+static void my_pointer_task_opencl (const int *, long long *)
|
|
|
__attribute__ ((task_implementation ("opencl", my_pointer_task)));
|
|
|
|
|
|
static void
|
|
|
-my_pointer_task_cpu (int *x, long long *y)
|
|
|
+my_pointer_task_cpu (const int *x, long long *y)
|
|
|
{
|
|
|
printf ("%s: x = %p, y = %p\n", __func__, x, y);
|
|
|
}
|
|
|
|
|
|
static void
|
|
|
-my_pointer_task_opencl (int *x, long long *y)
|
|
|
+my_pointer_task_opencl (const int *x, long long *y)
|
|
|
{
|
|
|
printf ("%s: x = %p, y = %p\n", __func__, x, y);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-static void my_mixed_task (int *x, char z, long long *y)
|
|
|
+static void my_mixed_task (int *x, char z, const long long *y)
|
|
|
__attribute__ ((task));
|
|
|
-static void my_mixed_task_cpu (int *, char, long long *)
|
|
|
+static void my_mixed_task_cpu (int *, char, const long long *)
|
|
|
__attribute__ ((task_implementation ("cpu", my_mixed_task)));
|
|
|
-static void my_mixed_task_opencl (int *, char, long long *)
|
|
|
+static void my_mixed_task_opencl (int *, char, const long long *)
|
|
|
__attribute__ ((task_implementation ("opencl", my_mixed_task)));
|
|
|
|
|
|
static void
|
|
|
-my_mixed_task_cpu (int *x, char z, long long *y)
|
|
|
+my_mixed_task_cpu (int *x, char z, const long long *y)
|
|
|
{
|
|
|
printf ("%s: x = %p, y = %p, z = %i\n", __func__, x, y, (int) z);
|
|
|
}
|
|
|
|
|
|
static void
|
|
|
-my_mixed_task_opencl (int *x, char z, long long *y)
|
|
|
+my_mixed_task_opencl (int *x, char z, const long long *y)
|
|
|
{
|
|
|
printf ("%s: x = %p, y = %p, z = %i\n", __func__, x, y, (int) z);
|
|
|
}
|
|
@@ -75,7 +75,7 @@ main (int argc, char *argv[])
|
|
|
|
|
|
struct insert_task_argument expected_pointer_task[] =
|
|
|
{
|
|
|
- { STARPU_RW, x },
|
|
|
+ { STARPU_R, x },
|
|
|
{ STARPU_RW, y },
|
|
|
{ 0, 0, 0 }
|
|
|
};
|
|
@@ -95,7 +95,7 @@ main (int argc, char *argv[])
|
|
|
{
|
|
|
{ STARPU_RW, x },
|
|
|
{ STARPU_VALUE, &z, sizeof z },
|
|
|
- { STARPU_RW, y },
|
|
|
+ { STARPU_R, y },
|
|
|
{ 0, 0, 0 }
|
|
|
};
|
|
|
|