Hello. Sorry for my English, it’s not my native language. Please, help me to fix my code. I try to multiply 3 matrices: A(m x n), B(n x k) and D(k x l)
This code work sometimes, but sometimes it’s not.
For example, with
"
const int m=100;
const int n=101;
const int k=102;
const int l=103;
"
I get
"
(:
Device: nan; Host: 28234250977280.000000
):
"
The first multiplication is correct (smile) and the second - not.
With
"
const int m=110;
const int n=39;
const int k=112;
const int l=132
"
I get
"
** On entry to SGEMM parameter number 10 had an illegal value
Multiplication failed. (1)
"
Multiplication does not start.
With
"
const int m=11;
const int n=11;
const int k=11;
const int l=11;
"
I get right answer, but I want not only to multiply square matrices (and it does not work for all nubmers).
Here is code: [url]http://pastebin.com/Jz3gubV1[/url]. I can’t paste it in this message (can’t create topic)
Sorry, now I do not use the “code” tag, because it works badly (maybe only in my firefox 16?)