ashvardanian / SimSIMD

Up to 200x Faster Dot Products & Similarity Metrics — for Python, Rust, C, JS, and Swift, supporting f64, f32, f16 real & complex, i8, and bit vectors using SIMD for both AVX2, AVX-512, NEON, SVE, & SVE2 📐
https://ashvardanian.com/posts/simsimd-faster-scipy/
Apache License 2.0
999 stars 59 forks source link

Fix linking to the correct OpenMP library #115

Closed mgorny closed 6 months ago

mgorny commented 6 months ago

Replace the hardcoded -lomp with -fopenmp to ensure that the compiler uses the correct OpenMP library. This is necessary for Clang to correctly link against its own OpenMP implementation, rather than compiling against LLVM OpenMP, then trying to link against libgomp.

ashvardanian commented 6 months ago

I believe this may have been left from the days when I was trying to make it work with AppleClang on MacOS. Thank you for spotting, @mgorny 🤗