cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

zenci
Staff
Staff

2D sparse matrix / use part of 2D stream

Hi,

I have folded my long vector into 2D using column-major ordering in Brook. I want to apply sparse matrix multiply using x[index]*A in a kernel on my 2D streams.

 

1. How can I get and operate on each column of my 2D stream? (If I do this, I can still use my 1D sparse matrix multiplication kernel)

2. Is there an easier way to implement this matrix operation using a construction similar to (x[index]*A) but perhaps utilizing 2D arrays? This would avoid me calling my 1D kernel.

 

Thanks.

0 Likes
1 Reply
genaganna
Journeyman III

2D sparse matrix / use part of 2D stream

Originally posted by: zenci Hi,

 

I have folded my long vector into 2D using column-major ordering in Brook. I want to apply sparse matrix multiply using x[index]*A in a kernel on my 2D streams.

 

 

 

1. How can I get and operate on each column of my 2D stream? (If I do this, I can still use my 1D sparse matrix multiplication kernel)

 

2. Is there an easier way to implement this matrix operation using a construction similar to (x[index]*A) but perhaps utilizing 2D arrays? This would avoid me calling my 1D kernel.

 

 Thanks.

 

I am not clear what you are asking. could you please post your kernel code here?

0 Likes