ashvardanian / SimSIMD

Up to 200x Faster Inner Products and Vector Similarity — for Python, JavaScript, Rust, C, and Swift, supporting f64, f32, f16 real & complex, i8, and binary vectors using SIMD for both x86 AVX2 & AVX-512 and Arm NEON & SVE 📐
https://ashvardanian.com/posts/simsimd-faster-scipy/
Apache License 2.0
794 stars 42 forks source link

Fix: ***WARNING*** Library was built as DEBUG. Timings may be affected. #127

Closed MarkReedZ closed 1 month ago

MarkReedZ commented 1 month ago

When google benchmark is built with cmake you must define NDEBUG when doing a release build or it will build in asserts and complain with

***WARNING*** Library was built as DEBUG. Timings may be affected.

MarkReedZ commented 1 month ago

Do we need to add a CI to test against various platforms?

ashvardanian commented 1 month ago

No need for CI, but would be great to use target-specific definitions.

MarkReedZ commented 1 month ago

Done.

  # Remove the google benchmark built in debug warning
  if (CMAKE_BUILD_TYPE STREQUAL "Release")
    target_compile_definitions( benchmark PRIVATE NDEBUG ) 
  endif()