7void FC_FUNC_(clblasgetversion_low, CLBLASGETVERSION_LOW)(
int * major,
int * minor,
int * patch,
int * status){
8 cl_uint cl_major, cl_minor, cl_patch;
10 *status = clblasGetVersion(&cl_major, &cl_minor, &cl_patch);
16void FC_FUNC_(clblassetup_low, CLBLASSETUP_LOW)(
int * status){
17 *status = clblasSetup();
20void FC_FUNC_(clblasteardown_low, CLBLASTEARDOWN_LOW)(){
24void FC_FUNC_(clblasdtrsmex_low, CLBLASDTRSMEX_LOW)(
int * order,
38 cl_command_queue * CommandQueue,
42 *status = clblasDtrsm((clblasOrder) *order, (clblasSide) *side, (clblasUplo) *uplo,
43 (clblasTranspose) *transA, (clblasDiag) *diag,
44 (
size_t) *M, (
size_t) *N, *alpha,
45 *A, (
size_t) *offA, (
size_t) *lda,
46 *B, (
size_t) *offB, (
size_t) *ldb,
47 1, CommandQueue, 0, NULL, NULL);
51void FC_FUNC_(clblasztrsmex_low, CLBLASZTRSMEX_LOW)(
int * order,
58 DoubleComplex * alpha,
65 cl_command_queue * CommandQueue,
69 *status = clblasZtrsm((clblasOrder) *order, (clblasSide) *side, (clblasUplo) *uplo,
70 (clblasTranspose) *transA, (clblasDiag) *diag,
71 (
size_t) *M, (
size_t) *N, *alpha,
72 *A, (
size_t) *offA, (
size_t) *lda,
73 *B, (
size_t) *offB, (
size_t) *ldb,
74 1, CommandQueue, 0, NULL, NULL);
77void FC_FUNC_(clblasdgemvex_low, CLBLASDGEMVEX_LOW)(
int * order,
92 cl_command_queue * CommandQueue,
95 *status = clblasDgemv((clblasOrder) *order, (clblasTranspose) *transA,
96 (
size_t) *M, (
size_t) *N, *alpha,
97 *A, (
size_t) *offA, (
size_t) *lda,
98 *X, (
size_t) *offX, (
size_t) *incx, *beta,
99 *Y, (
size_t) *offY, (
size_t) *incy,
100 1, CommandQueue, 0, NULL, NULL);
103void FC_FUNC_(clblaszgemvex_low, CLBLASZGEMVEX_LOW)(
int * order,
118 cl_command_queue * CommandQueue,
121 *status = clblasZgemv((clblasOrder) *order, (clblasTranspose) *transA,
122 (
size_t) *M, (
size_t) *N, *alpha,
123 *A, (
size_t) *offA, (
size_t) *lda,
124 *X, (
size_t) *offX, (
size_t) *incx, *beta,
125 *Y, (
size_t) *offY, (
size_t) *incy,
126 1, CommandQueue, 0, NULL, NULL);
129void FC_FUNC_(clblasdgemmex_low, CLBLASDGEMMEX_LOW)(
int * order,
146 cl_command_queue * CommandQueue,
149 *status = clblasDgemm((clblasOrder) *order, (clblasTranspose) *transA, (clblasTranspose) *transB,
150 (
size_t) *M, (
size_t) *N, (
size_t) *K, *alpha,
151 *A, (
size_t) *offA, (
size_t) *lda,
152 *B, (
size_t) *offB, (
size_t) *ldb, *beta,
153 *C, (
size_t) *offC, (
size_t) *ldc,
154 1, CommandQueue, 0, NULL, NULL);
157void FC_FUNC_(clblaszgemmex_low, CLBLASZGEMMEX_LOW)(
int * order,
163 DoubleComplex * alpha,
170 DoubleComplex * beta,
174 cl_command_queue * CommandQueue,
177 *status = clblasZgemm((clblasOrder) *order, (clblasTranspose) *transA, (clblasTranspose) *transB,
178 (
size_t) *M, (
size_t) *N, (
size_t) *K, *alpha,
179 *A, (
size_t) *offA, (
size_t) *lda,
180 *B, (
size_t) *offB, (
size_t) *ldb, *beta,
181 *C, (
size_t) *offC, (
size_t) *ldc,
182 1, CommandQueue, 0, NULL, NULL);
185void FC_FUNC_(clblasdsyrkex_low, CLBLASDSYRKEX_LOW)(
int * order,
198 cl_command_queue * CommandQueue,
201 *status = clblasDsyrk((clblasOrder) *order, (clblasUplo) *uplo, (clblasTranspose) *transA,
202 (
size_t) *N, (
size_t) *K, *alpha,
203 *A, (
size_t) *offA, (
size_t) *lda, *beta,
204 *C, (
size_t) *offC, (
size_t) *ldc,
205 1, CommandQueue, 0, NULL, NULL);
208void FC_FUNC_(clblaszherkex_low, CLBLASZHERKEX_LOW)(
int * order,
221 cl_command_queue * CommandQueue,
224 *status = clblasZherk((clblasOrder) *order, (clblasUplo) *uplo, (clblasTranspose) *transA,
225 (
size_t) *N, (
size_t) *K, *alpha,
226 *A, (
size_t) *offA, (
size_t) *lda, *beta,
227 *C, (
size_t) *offC, (
size_t) *ldc,
228 1, CommandQueue, 0, NULL, NULL);
232clblasStatus FC_FUNC_(clblasddot_low, CLBLASDDOT_LOW)(cl_long * N,
241 cl_mem * scratchBuff,
242 cl_command_queue * CommandQueue,
246 *status = clblasDdot((
size_t) *N, *dotProduct, (
size_t) *offDP, *X, (
size_t) *offx, *incx,
247 *Y, (
size_t) *offy, *incy, *scratchBuff, 1, CommandQueue, 0, NULL, NULL);
252clblasStatus FC_FUNC_(clblaszdotc_low, CLBLASZDOTC_LOW)(cl_long * N,
261 cl_mem * scratchBuff,
262 cl_command_queue * CommandQueue,
266 *status = clblasZdotc((
size_t) *N, *dotProduct, (
size_t) *offDP, *X, (
size_t) *offx, *incx,
267 *Y, (
size_t) *offy, *incy, *scratchBuff, 1, CommandQueue, 0, NULL, NULL);
271clblasStatus FC_FUNC_(clblaszdotu_low, CLBLASZDOTU_LOW)(cl_long * N,
280 cl_mem * scratchBuff,
281 cl_command_queue * CommandQueue,
285 *status = clblasZdotu((
size_t) *N, *dotProduct, (
size_t) *offDP, *X, (
size_t) *offx, *incx,
286 *Y, (
size_t) *offy, *incy, *scratchBuff, 1, CommandQueue, 0, NULL, NULL);
290clblasStatus FC_FUNC_(clblasdnrm2_low, CLBLASDNRM2_LOW)(cl_long * N,
296 cl_mem * scratchBuff,
297 cl_command_queue * CommandQueue,
301 *status = clblasDnrm2((
size_t) *N, *NRM2, (
size_t) *offNRM2, *X, (
size_t) *offx, *incx,
302 *scratchBuff, 1, CommandQueue, 0, NULL, NULL);
306clblasStatus FC_FUNC_(clblasdznrm2_low, CLBLASDZNRM2_LOW)(cl_long * N,
312 cl_mem * scratchBuff,
313 cl_command_queue * CommandQueue,
317 *status = clblasDznrm2((
size_t) *N, *NRM2, (
size_t) *offNRM2, *X, (
size_t) *offx, *incx,
318 *scratchBuff, 1, CommandQueue, 0, NULL, NULL);