FS#45325 - [cblas] cblas_sdsdot failure

Attached to Project: Community Packages
Opened by Jueji Yang (juejiyang) - Sunday, 14 June 2015, 08:40 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 14 June 2015, 11:30 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
cblas_sdsdot fails and always returns 0 (In my understanding, cblas_sdsdot calls libcblas.so and then libcblas.so calls libblas.so). While fortran version sdsdot which directly calls libblas.so performs correctly.
My test codes: https://gist.github.com/yangjueji/8e58575ea9159b6c11da

Additional info:
* package version(s)
* config and/or log files etc.
cblas 3.5.0-2
blas 3.5.0-1

Steps to reproduce:
//compile: g++ sdsdot.cpp -lcblas
#include<cblas.h>
#include<stdio.h>

int main() {
float x[] = {1,2,3,4,5,6};
float y[] = {1,2,3,4,5,6,7,8,9,10,11,12};
float res = cblas_sdsdot(3, 2.0, x, 2 , y, 4);
printf("%f\n", res); // got 0.000000 on Arch Linux with cblas 3.5.0-2 and blas 3.5.0-1
return 0;
}
---------------------------------
C compile: gfortran sdsdotF.f -lblas
program sdsdotF

implicit none

real*4 x(6)
real*4 y(12)

real*4 sdsdot
external sdsdot

data x/1, 2, 3, 4, 5, 6/
data y/1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12/
write (*,*) 'sdsdot of x y = ', sdsdot(3, 2.0, x, 2, y, 4)
C got 63.0000000 with same environment. This is the expected result.

end
This task depends upon

Closed by  Antonio Rojas (arojas)
Sunday, 14 June 2015, 11:30 GMT
Reason for closing:  Fixed
Additional comments about closing:  cblas 3.5.0-3

Loading...