Lapack gcc on Mac OS

I am trying to compile my C ++ code with gcc against the Accelerate framework to use Lapack. However, I get the following error message:

/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h: In function 'vUInt16 vU16HalfMultiply(vUInt16, vUInt16)': /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h:377:84: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts vUInt16 __vbasicops_vB) { return _mm_mullo_epi16(__vbasicops_vA, __vbasicops_vB); } 

I found only a suggestion to add โ€œ-D__ACCELERATE__โ€ as a flag, but this causes a bunch of โ€œnot declared in this areaโ€ -errors, for example. '__CLPK_integer was not declared in this area for a variable declared only in my main.

Adding "-flax-vector-conversion" as a flag solves my problem, however I'm not sure how safe this is? Thanks!

+5
source share

Source: https://habr.com/ru/post/1259060/


All Articles