BeBOP: pOSKI  v1.0.0
parallel Optimized Sparse Kernel Interface library
 All Files Functions Variables
Functions
poski_TuneMatHandler.c File Reference

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.

Detailed Description

Tuning module implementation.

This module implements the routines to handle the tuning operations.

Also, refer poski_TuneMat_common.c


Function Documentation

int poski_TuneMat ( poski_mat_t  A_tunable)

Tune matrix.

Parameters:
[in,out]A_tunableTunable matrix object.
Returns:
0 if success, or an error message otherwise.
int poski_TuneHint_Structure ( poski_mat_t  A_tunable,
poski_tunehint_t  hint,
  ... 
)

Set structural hints.

Parameters:
[in,out]A_tunableTunable matrix object.
[in]hintUser-specified structural hint.
Returns:
0 if success, or an error message otherwise.
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.

Parameters:
[in,out]A_tunableTunable matrix object.
[in]opSpecifies op(A).
[in]alphaScalar constant.
[in]x_viewSymbolic vector or Vector-view object for a vector x.
[in]betaScalar constant.
[in]y_viewSymbolic vector or Vector-view object for a vector y.
[in]num_callsThe number of times this kernel will be called with these arguments.
Returns:
0 if success, or an error message otherwise.