PLASMA_desc

Open forum for general discussions relating to PLASMA.

PLASMA_desc

Postby piyusch » Wed Sep 28, 2011 1:16 am

I've a matrix which I manually store into tile format. Now I want use some of plasma's tile based routine on this matrix which takes mostly plasma_descriptor as input. how do I initialize such a descriptor?

Additional info. The whole matrix is is of double type and stored in continuous array. It has size N and tile size b and in my case b divides N. Elements within each tile is continuous block of memory and arranged column wise and all the tiles are also arranged column wise .

Thanks
piyusch
 
Posts: 3
Joined: Wed Sep 28, 2011 12:26 am

Re: PLASMA_desc

Postby admin » Wed Sep 28, 2011 11:20 am

Sorry to point you to the source code :oops:
contro/descriptor.c

Code: Select all
/***************************************************************************//**
 *
 * @ingroup Auxiliary
 *
 *  PLASMA_Desc_Create - Create matrix descriptor.
 *
 *******************************************************************************
 *
 * @param[out] desc
 *          On exit, descriptor of the matrix.
 *
 * @param[in] mat
 *          Memory location of the matrix.
 *
 * @param[in] dtyp
 *          Data type of the matrix:
 *          @arg PlasmaRealFloat:     single precision real (S),
 *          @arg PlasmaRealDouble:    double precision real (D),
 *          @arg PlasmaComplexFloat:  single precision complex (C),
 *          @arg PlasmaComplexDouble: double precision complex (Z).
 *
 * @param[in] mb
 *          Number of rows in a tile.
 *
 * @param[in] nb
 *          Number of columns in a tile.
 *
 * @param[in] bsiz
 *          Size in bytes including padding.
 *
 * @param[in] lm
 *          Number of rows of the entire matrix.
 *
 * @param[in] ln
 *          Number of columns of the entire matrix.
 *
 * @param[in] i
 *          Row index to the beginning of the submatrix.
 *
 * @param[in] j
 *          Column indes to the beginning of the submatrix.
 *
 * @param[in] m
 *          Number of rows of the submatrix.
 *
 * @param[in] n
 *          Number of columns of the submatrix.
 *
 *******************************************************************************
 *
 * @return
 *          \retval PLASMA_SUCCESS successful exit
 *
 ******************************************************************************/
int PLASMA_Desc_Create(PLASMA_desc **desc, void *mat, PLASMA_enum dtyp, int mb, int nb, int bsiz,
                       int lm, int ln, int i, int j, int m, int n)


Hope it helps.
Jakub
admin
Site Admin
 
Posts: 79
Joined: Wed May 13, 2009 1:27 pm

Re: PLASMA_desc

Postby admin » Wed Sep 28, 2011 11:22 am

admin
Site Admin
 
Posts: 79
Joined: Wed May 13, 2009 1:27 pm


Return to User discussion

Who is online

Users browsing this forum: Google [Bot] and 2 guests