@@ -18,7 +18,18 @@ TH_EXTERNC void scopy_(int *n, float *x, int *incx, float *y, int *incy);
18
18
TH_EXTERNC void daxpy_ (int * n , double * a , double * x , int * incx , double * y , int * incy );
19
19
TH_EXTERNC void saxpy_ (int * n , float * a , float * x , int * incx , float * y , int * incy );
20
20
TH_EXTERNC double ddot_ (int * n , double * x , int * incx , double * y , int * incy );
21
+ #ifdef BLAS_USE_CBLAS_DOT
22
+ TH_EXTERNC float cblas_sdot (const int n , const float * x , const int incx , const float * y , const int incy );
23
+ #ifndef THBlas_C_sdot_
24
+ #define THBlas_C_sdot_
25
+ inline ffloat sdot_ (const int * n , const float * x , const int * incx , const float * y , const int * incy )
26
+ {
27
+ return cblas_sdot (* n , x , * incx , y , * incy );
28
+ }
29
+ #endif
30
+ #else
21
31
TH_EXTERNC ffloat sdot_ (int * n , float * x , int * incx , float * y , int * incy );
32
+ #endif
22
33
TH_EXTERNC void dgemv_ (char * trans , int * m , int * n , double * alpha , double * a , int * lda , double * x , int * incx , double * beta , double * y , int * incy );
23
34
TH_EXTERNC void sgemv_ (char * trans , int * m , int * n , float * alpha , float * a , int * lda , float * x , int * incx , float * beta , float * y , int * incy );
24
35
TH_EXTERNC void dger_ (int * m , int * n , double * alpha , double * x , int * incx , double * y , int * incy , double * a , int * lda );
0 commit comments