|
@@ -18,6 +18,7 @@
|
|
|
#include <starpu.h>
|
|
#include <starpu.h>
|
|
|
#include "../helper.h"
|
|
#include "../helper.h"
|
|
|
|
|
|
|
|
|
|
+static
|
|
|
void begin(void *descr[], void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
void begin(void *descr[], void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
|
{
|
|
{
|
|
|
int *x = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
int *x = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
@@ -32,8 +33,7 @@ static struct starpu_codelet codelet_begin =
|
|
|
.nbuffers = 1,
|
|
.nbuffers = 1,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+static
|
|
|
void commute1(void *descr[], void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
void commute1(void *descr[], void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
|
{
|
|
{
|
|
|
int *x = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
int *x = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
@@ -49,8 +49,7 @@ static struct starpu_codelet codelet_commute1 =
|
|
|
.modes = {STARPU_RW | STARPU_COMMUTE}
|
|
.modes = {STARPU_RW | STARPU_COMMUTE}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+static
|
|
|
void commute2(void *descr[], void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
void commute2(void *descr[], void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
|
{
|
|
{
|
|
|
int *x = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
int *x = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
@@ -66,6 +65,7 @@ static struct starpu_codelet codelet_commute2 =
|
|
|
.modes = {STARPU_W | STARPU_COMMUTE}
|
|
.modes = {STARPU_W | STARPU_COMMUTE}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+static
|
|
|
void commute3(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
void commute3(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
@@ -78,9 +78,8 @@ static struct starpu_codelet codelet_commute3 =
|
|
|
.modes = {STARPU_RW | STARPU_COMMUTE}
|
|
.modes = {STARPU_RW | STARPU_COMMUTE}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
static struct starpu_codelet codelet_end;
|
|
static struct starpu_codelet codelet_end;
|
|
|
|
|
+static
|
|
|
void end(void *descr[], void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
void end(void *descr[], void *_args STARPU_ATTRIBUTE_UNUSED)
|
|
|
{
|
|
{
|
|
|
int *x = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
int *x = (int *)STARPU_VARIABLE_GET_PTR(descr[0]);
|