You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the current best example of the sort usage is in bench_sort.cc. But what if I want to integrate the VQSort() function into an existing code? What would be the most effortless way to do this, e.g., with a header only approach (as in the vectorized sorting library by Bramas)?
The text was updated successfully, but these errors were encountered:
Hi, bench_sort and sort_test go through an extra Run() function, but yes, it boils down to a call to VQSort().
Highway is not quite header-only (#2114), hence some build system integration is required. If you are using CMake or Blaze, you can search CMakeLists.txt or BUILD for "examples/", which shows how to link against Highway. Note that contrib/sort has its own BUILD, whereas for CMake it is still handled by the main CMakeLists.txt.
Thanks for the help. I'm actually using standard make. I've tried building Highway using make install and then, in my code, linking Highway as -L/path/to/highway/lib64 --lhwy_contrib. However, this is probably not correct since I still get undefined reference compilation errors.
(Sorry, I'm still a bit of an amateur when it comes to this stuff)
I believe the current best example of the sort usage is in bench_sort.cc. But what if I want to integrate the VQSort() function into an existing code? What would be the most effortless way to do this, e.g., with a header only approach (as in the vectorized sorting library by Bramas)?
The text was updated successfully, but these errors were encountered: