ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, VMX(Altivec) and VSX(Power7) for PowerPC, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.03k stars 406 forks source link

Fix for error when `lscpu` not installed [SimdBaseCpu.cpp] #220

Closed robinvanemden closed 2 years ago

robinvanemden commented 2 years ago

When lscpu is not installed or not available SIMD will error on initialization.

The current PR resolves this by making the call to lscpu fail silently, falling back to the default 0 for CpuSocketNumber() and CpuSocketNumber() (only) when lscpu is not found.