BeBOP: pOSKI
v1.0.0
parallel Optimized Sparse Kernel Interface library
|
Tuning module implementation. More...
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <poski/poski_matrixcommon.h>
#include <poski/poski_tunematcommon.h>
#include <poski/poski_malloc.h>
#include <poski/poski_print.h>
Functions | |
int | poski_TuneMat (poski_mat_t A_tunable) |
Tune matrix. | |
int | poski_TuneHint_Structure (poski_mat_t A_tunable, poski_tunehint_t hint,...) |
Set structural hints. | |
int | poski_TuneHint_MatMult (poski_mat_t A_tunable, poski_operation_t op, poski_value_t alpha, poski_vec_t x_view, poski_value_t beta, poski_vec_t y_view, int num_calls) |
Set workload hint for the kernel operation poski_MatMult. |
Tuning module implementation.
This module implements the routines to handle the tuning operations.
Also, refer poski_TuneMat_common.c
int poski_TuneMat | ( | poski_mat_t | A_tunable | ) |
Tune matrix.
[in,out] | A_tunable | Tunable matrix object. |
int poski_TuneHint_Structure | ( | poski_mat_t | A_tunable, |
poski_tunehint_t | hint, | ||
... | |||
) |
Set structural hints.
[in,out] | A_tunable | Tunable matrix object. |
[in] | hint | User-specified structural hint. |
int poski_TuneHint_MatMult | ( | poski_mat_t | A_tunable, |
poski_operation_t | op, | ||
poski_value_t | alpha, | ||
poski_vec_t | x_view, | ||
poski_value_t | beta, | ||
poski_vec_t | y_view, | ||
int | num_calls | ||
) |
Set workload hint for the kernel operation poski_MatMult.
[in,out] | A_tunable | Tunable matrix object. |
[in] | op | Specifies op(A). |
[in] | alpha | Scalar constant. |
[in] | x_view | Symbolic vector or Vector-view object for a vector x. |
[in] | beta | Scalar constant. |
[in] | y_view | Symbolic vector or Vector-view object for a vector y. |
[in] | num_calls | The number of times this kernel will be called with these arguments. |