supersunshine

The problem in the Maxtrix multiply example

Discussion created by supersunshine on Nov 12, 2010
Latest reply on Dec 5, 2010 by himanshu.gautam

is there any one would  help me,the problem is given below:

(wA is the width of Maxtrix A,and hA is the heigth of A,and Matrix B is similar with is)

"int bx=blockIdx.x

//index of the first sub-matrix of A processed by the block

int aBegin=wA*BLOCK_SIZE*by

int aEnd=aBegin+wA-1;

int bBegin=BLOCK_SIZE*bx

"

i do not understand  meaning of the code and how does the index of the first sub-matrix of A processed by ther block caculated? thanks.

Outcomes