Hi,

I’m now implement a kernel function for simply 1 matrix * 1 vector.

However, I’m just confusing how I can be implement a good way.

I would like to product 1 row by the vector respectively.

if

matrix ->

a b c d

e f g h

vector ->

1 2 3 4

result

a*1 b*2 c*3 d*4

e*1 f*2 g*3 h*4

I always confuse how I choose grid and block dimension well…

if I use

width = 1024

height = 2400

vector size = 1024 ,

then how I can set up the grid and block size?

(I’m using titan X)

Could anyone can explain for my question?

Thank you!