-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Header-only sort example #2295
Comments
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. Hope this helps :) |
Thanks for the help. I'm actually using standard make. I've tried building Highway using (Sorry, I'm still a bit of an amateur when it comes to this stuff) |
:) I think you'll also have to link against hwy itself, not just hwy_contrib. What are the undefined references? |
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: