STARS-H
Software for Testing Accuracy, Reliability and Scalability of Hierarchical computations
|
#include "starsh.h"
Go to the source code of this file.
Data Structures | |
struct | starsh_mindata |
Structure for minimal example. More... | |
Typedefs | |
typedef struct starsh_mindata | STARSH_mindata |
Structure for minimal example. More... | |
Enumerations | |
enum | STARSH_MINIMAL_KERNEL { STARSH_MINIMAL_KERNEL1 = 1 } |
List of built-in kernels for starsh_mindata_get_kernel(). More... | |
Functions | |
int | starsh_mindata_new (STARSH_mindata **data, STARSH_int count, char dtype) |
Create container for minimal working example. More... | |
void | starsh_mindata_free (STARSH_mindata *data) |
int | starsh_mindata_get_kernel (STARSH_kernel **kernel, STARSH_mindata *data, enum STARSH_MINIMAL_KERNEL type) |
Get kernel for minimal working example. More... | |
void | starsh_mindata_block_kernel (int nrows, int ncols, STARSH_int *irow, STARSH_int *icol, void *row_data, void *col_data, void *result, int ld) |
The only kernel for STARSH_mindata object. More... | |
STARS-H is a software package, provided by King Abdullah University of Science and Technology (KAUST)
void starsh_mindata_block_kernel | ( | int | nrows, |
int | ncols, | ||
STARSH_int * | irow, | ||
STARSH_int * | icol, | ||
void * | row_data, | ||
void * | col_data, | ||
void * | result, | ||
int | ld | ||
) |
The only kernel for STARSH_mindata object.
[in] | nrows | Number of rows of \( A \). |
[in] | ncols | Number of columns of \( A \). |
[in] | irow | Array of row indexes. |
[in] | icol | Array of column indexes. |
[in] | row_data | Pointer to physical data (STARSH_mindata object). |
[in] | col_data | Pointer to physical data (STARSH_mindata object). |
[out] | result | Pointer to memory of \( A \). |
[in] | ld | Leading dimension of result . |
void starsh_mindata_free | ( | STARSH_mindata * | data | ) |
Free data.
int starsh_mindata_get_kernel | ( | STARSH_kernel ** | kernel, |
STARSH_mindata * | data, | ||
enum STARSH_MINIMAL_KERNEL | type | ||
) |
Get kernel for minimal working example.
Kernel can be selected with this call or manually. Currently, there is only one kernel for STARSH_mindata problem.
[out] | kernel | Address of STARSH_kernel function. |
[in] | data | Pointer to STARSH_mindata object. |
[in] | type | Type of kernel. For more info look at STARSH_MINIMAL_KERNEL. |
int starsh_mindata_new | ( | STARSH_mindata ** | data, |
STARSH_int | count, | ||
char | dtype | ||
) |
Create container for minimal working example.
[out] | data | Address of pointer to STARSH_mindata object. |
[in] | count | Size of matrix. |
[in] | dtype | precision ('s', 'd', 'c' or 'z'). |