[Jprogramming] matrix multiplication (modeling in CUDA for a GPU)

Jan Jacobs jan.wm.jacobs1 at gmail.com
Tue Nov 8 04:09:53 HKT 2011


ls,
for educational purposes I want to breakdown a CUDA matrix
multiplication in smaller parts.
What I do not understand is that for B=:A =: i.6 6
 tA =: (2 2,:2 2)<;._3 A
 tB =: (2 2,:2 2)<;._3 B
 tA (+/ . *)&.> tB
works fine, but
 tA =: (2 6,:2 6)<;._3 A
 tB =: (6 2,:6 2)<;._3 B
 tA (+/ . *)&.> tB
does not:
|length error
|   tA    (+/ .*)"1&.>tB

The shapes of the various boxes are as expected.
What is going wrong?
Thanks in advance for the help.
Jan.


-- 
Jan Jacobs
Esdoornstraat 33
5995AN Kessel
W: www.sommaps.com
T: +31 77 462 1887
M: +31 6 23 82 55 21
E: jan.jacobs at sommaps.com


More information about the Programming mailing list