sdpb icon indicating copy to clipboard operation
sdpb copied to clipboard

Compilation error: ‘CBLAS_LAYOUT’ was not declared

Open vasdommes opened this issue 7 months ago • 0 comments

For some (older?) CBLAS implementations, CBLAS_LAYOUT is not declared, which leads to compilation error.

Workaround: add

typedef CBLAS_ORDER CBLAS_LAYOUT; 

to bigint_syrk_blas.cxx https://github.com/davidsd/sdpb/blob/3e084a5bb3519c3a6fc0598c835d68c2736a0b19/src/sdp_solve/SDP_Solver/run/bigint_syrk/BigInt_Shared_Memory_Syrk_Context/bigint_syrk_blas.cxx#L7

I don't want to add this typedef always because it could break compilation if CBLAS_ORDER is not declared or has different meaning.

See also: https://github.com/OpenMathLib/OpenBLAS/issues/1754 https://stackoverflow.com/questions/43664032/cblas-layout-not-declared-in-gcc-version-of-mkl-h

vasdommes avatar Jul 10 '24 17:07 vasdommes