17 #include "runtime/starpu/chameleon_starpu.h" 20 #include "runtime/starpu/runtime_codelets.h" 21 ZCODELETS_HEADER(hagdm)
27 int nrows_Dense,
int ncols_Dense,
28 const MORSE_desc_t *Dense,
34 struct starpu_codelet *codelet = &cl_zhagdm;
35 void (*callback)(
void*) = NULL;
37 MORSE_BEGIN_ACCESS_DECLARATION;
38 MORSE_ACCESS_W(Dense, tile_row_index, tile_col_index);
39 MORSE_END_ACCESS_DECLARATION;
41 starpu_mpi_codelet(codelet),
42 STARPU_VALUE, &nrows_Dense,
sizeof(
int),
43 STARPU_VALUE, &ncols_Dense,
sizeof(
int),
44 STARPU_W, RTBLKADDR(Dense,
double, tile_row_index, tile_col_index),
45 STARPU_VALUE, &ld_Dense,
sizeof(
int),
46 STARPU_VALUE, &tile_row_index,
sizeof(
int),
47 STARPU_VALUE, &tile_col_index,
sizeof(
int),
48 STARPU_PRIORITY, options->priority,
49 STARPU_CALLBACK, callback,
50 #
if defined(CHAMELEON_CODELETS_HAVE_NAME)
51 STARPU_NAME,
"hcore_zhagdm",
59 #if !defined(CHAMELEON_SIMULATION) 60 static void cl_zhagdm_cpu_func(
void *descr[],
void *cl_arg)
70 Dense = (
double *)STARPU_MATRIX_GET_PTR(descr[0]);
71 starpu_codelet_unpack_args(cl_arg, &nrows_Dense, &ncols_Dense, &ld_Dense, &tile_row_index, &tile_col_index);
86 CODELETS_CPU(zhagdm, 1, cl_zhagdm_cpu_func)
88 ZCODELETS_HEADER(hagdmi)
94 int nrows_Dense,
int ncols_Dense,
95 const MORSE_desc_t *Dense,
99 int problem_row_index,
100 int problem_col_index
103 struct starpu_codelet *codelet = &cl_zhagdmi;
104 void (*callback)(
void*) = NULL;
106 MORSE_BEGIN_ACCESS_DECLARATION;
107 MORSE_ACCESS_W(Dense, tile_row_index, tile_col_index);
108 MORSE_END_ACCESS_DECLARATION;
110 starpu_mpi_codelet(codelet),
111 STARPU_VALUE, &nrows_Dense,
sizeof(
int),
112 STARPU_VALUE, &ncols_Dense,
sizeof(
int),
113 STARPU_W, RTBLKADDR(Dense,
double, tile_row_index, tile_col_index),
114 STARPU_VALUE, &ld_Dense,
sizeof(
int),
115 STARPU_VALUE, &tile_row_index,
sizeof(
int),
116 STARPU_VALUE, &tile_col_index,
sizeof(
int),
117 STARPU_VALUE, &problem_row_index,
sizeof(
int),
118 STARPU_VALUE, &problem_col_index,
sizeof(
int),
119 STARPU_PRIORITY, options->priority,
120 STARPU_CALLBACK, callback,
121 #
if defined(CHAMELEON_CODELETS_HAVE_NAME)
122 STARPU_NAME,
"hcore_zhagdm",
131 #if !defined(CHAMELEON_SIMULATION) 132 static void cl_zhagdmi_cpu_func(
void *descr[],
void *cl_arg)
141 int problem_row_index;
142 int problem_col_index;
144 Dense = (
double *)STARPU_MATRIX_GET_PTR(descr[0]);
145 starpu_codelet_unpack_args(cl_arg, &nrows_Dense, &ncols_Dense, &ld_Dense, &tile_row_index, &tile_col_index, &problem_row_index, &problem_col_index);
160 CODELETS_CPU(zhagdmi, 1, cl_zhagdmi_cpu_func)
void HICMA_TASK_zhagdmi(const MORSE_option_t *options, int nrows_Dense, int ncols_Dense, const MORSE_desc_t *Dense, int ld_Dense, int tile_row_index, int tile_col_index, int problem_row_index, int problem_col_index)
void HICMA_TASK_zhagdm(const MORSE_option_t *options, int nrows_Dense, int ncols_Dense, const MORSE_desc_t *Dense, int ld_Dense, int tile_row_index, int tile_col_index)
void HCORE_zhagdm(int nrows_Dense, int ncols_Dense, double *Dense, int ld_Dense, int tile_row_index, int tile_col_index)