The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

problem with CBLAS( Leading dimension ??)

Open discussion regarding features, bugs, issues, vendors, etc.

problem with CBLAS( Leading dimension ??)

Postby mpakala » Fri Jan 05, 2007 1:20 pm

Hi

I am having trouble using CBLAS may be because of the leading dimension issue.
when i have matrix size e.g. a(3x2) , b(2x3) ; a( 2x3) , b(3x2) ; a(2x2) , b(2x2)...i dont have problem but if i have something like
a(3x2) , b(2x2) ; a(2x3) ; b(3x3) I am getting incorrect results.

This is how I set the leading dimensions:
lda = max(1,a.nrow); ldb = max(1,b.nrow) ; ldc = max(1,c.nrow);

cblas_sgemm( CblasColMajor, CblasNoTrans, CblasNoTrans, a.nrow , b.ncol , a.ncol , ALPHA, pa, lda,pb, ldb, BETA, pc, ldc );
Please let me know if I am missing something

thanks
Kiran
mpakala
 
Posts: 6
Joined: Thu Nov 09, 2006 7:57 pm

Postby mpakala » Fri Jan 05, 2007 1:33 pm

please ignore my previous message...i got it fixed..

thanks

kiran
mpakala
 
Posts: 6
Joined: Thu Nov 09, 2006 7:57 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 6 guests