cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

supersunshine
Journeyman III

The problem in the Maxtrix multiply example

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.

0 Likes
1 Reply
himanshu_gautam
Grandmaster

supersunshine,

I find it hard to understand your question. Are you trying to do matrix multiplication using LDS? Refering to OpenCL samples can be a good idea.

Besides that Can you provide the complete kernel, or quote its source?

0 Likes