77 void mult(HitTile_double M, HitTile_double b, HitTile_double c){
106 HitTile_double
norm, sum_norm;
148 printf(
"%s [-n ITERATIONS] FILE \n",name);
149 printf(
" -n number of iterations\n");
150 printf(
" FILE input HB matrix file\n");
169 while ((c = (
char) getopt (argc, argv,
"hn:")) != -1)
172 sscanf(optarg,
"%d",&
iter);
183 char * matrix_file = argv[optind];
187 printf(
"# Matrix: %s\n",matrix_file);
188 printf(
"# Iterations %d\n",
iter);
192 printf(
"Matrix must to be square");
217 int main(
int argc,
char ** argv) {
236 lay =
hit_layout(plug_laySparseBitmapRows,topo,&shape_global);
260 lay_v =
hit_layout(plug_layBlocks,topo,full_vector);
286 for(i=0; i<
iter; i++){
301 printf(
"# Result norm: %5.2f\n",norm);
#define hit_shape(nd,...)
#define hit_bShapeColumnIterator(var, shape, row)
void print_help(char *name)
#define hit_layShape(lay)
#define hit_tileNewType(baseType)
#define hit_bShapeAddElem(shapep, x, y)
void hit_comOpSumDouble(void *, void *, int *, HitType *)
#define hit_mbTileElemIteratorAt(var, iterX, iterY)
int hit_bShapeNColsRow(HitShape shape, int row)
#define hit_tileElemAt(var, ndims,...)
#define hit_fileHBMatrixReadBitmap(hbfile)
#define hit_bShapeEdgeTarget(s, edge)
#define hit_bShapeCard(shape, dim)
#define HIT_LAYOUT_NULL_STATIC
void hit_comFree(HitCom issue)
void hit_comDo(HitCom *issue)
void mult(HitTile_double M, HitTile_double b, HitTile_double c)
#define hit_tileDomainAlloc(newVarP, baseType, numDims,...)
#define hit_topology(name,...)
#define hit_bShapeRowIterator(var, shape)
#define hit_patMatMultBitmap(pattern, lay, origin_matrix, matrix, tilePSend, tilePRecv, baseType)
#define HIT_PAT_UNORDERED
#define hit_tileDimCard(var, dim)
#define hit_tileDomainShapeAlloc(newVarP, baseType, shape)
#define init_matrix(mm, a, b, c, d, e, f, g, h, i)
void hit_topFree(HitTopology topo)
#define hit_comOp(function, operation)
#define hit_clockWorldReduce(c)
void hit_comInit(int *pargc, char **pargv[])
#define hit_tileElemAtNoStride(var, ndims,...)
#define hit_shapeSigCard(shape, dim)
void hit_layFree(HitLayout lay)
int main(int argc, char *argv[])
HitShape HIT_BITMAP_SHAPE_NULL
#define hit_comReduce(lay, root, tilePSend, tilePRecv, baseType, operation)
#define hit_layout(name, topo,...)
#define hit_shapeSig(shape, dim)
#define hit_tileFree(var)
void hit_shapeFree(HitShape s)
#define hit_tileShape(var)
#define hit_patternDo(pattern)
#define hit_clockGetSeconds(c)
#define hit_clockStart(c)
#define hit_mbTileDomainShapeAlloc(var, baseType, shape)
double vector_norm(HitTile_double v)