failed to build netlib-java due to a difference in cblas.h

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

failed to build netlib-java due to a difference in cblas.h

Postby winice » Fri Aug 26, 2016 4:43 am

Hi

I am trying to build netlib-java with cblas/lapacke. I downloaded the lapack-3.6.0 which also contains the cblas. It complains some definition about the enum types.

com_github_fommil_netlib_NativeSystemBLAS.c: In function ‘Java_com_github_fommil_netlib_NativeSystemBLAS_dgbmv’:
com_github_fommil_netlib_NativeSystemBLAS.c:204:1: error: invalid use of undefined type ‘enum CBLAS_TRANSPOSE’
cblas_dgbmv(CblasColMajor, getCblasTrans(jni_trans), m, n, kl, ku, alpha, jni_a, lda, jni_x, incx, beta, jni_y, incy);

Then I downloaded the cblas.h from http://www.netlib.org/blas/cblas.h. It works fine.

The difference is in lapack-3.6.0/CBLAS/include/cblas.h, it adds typedef before enum. For example:
typedef enum {CblasRowMajor=101, CblasColMajor=102} CBLAS_LAYOUT;
But in the blas/cblas.h, it only defines enum CBLAS_ORDER but not typedef.
enum CBLAS_ORDER {CblasRowMajor=101, CblasColMajor=102};
winice
 
Posts: 2
Joined: Mon Aug 27, 2007 9:31 pm

Return to User Discussion

Who is online

Users browsing this forum: Bing [Bot] and 2 guests