Skip to content
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

cmake: add USE_SYSTEM_* options; support find_package(FP16) #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ConnorBaker
Copy link

@ConnorBaker ConnorBaker commented Jul 2, 2023

Similar to the work done in pytorch/pytorch#37137, this adds the following CMake options:

  • USE_SYSTEM_LIBS
  • USE_SYSTEM_PSIMD
  • USE_SYSTEM_GOOGLEBENCHMARK
  • USE_SYSTEM_GOOGLETEST

This is particularly useful in the context of Nix, where we can build these libraries once and then re-use them elsewhere to avoid rebuilding vendors dependencies.

Additionally, adds a CMake configuration file to make it possible for CMake-based projects to use find_package to consume this library.

@ConnorBaker ConnorBaker force-pushed the feat/use-system-libs branch from 5dccba0 to 4cf7593 Compare July 3, 2023 02:21
@ConnorBaker ConnorBaker force-pushed the feat/use-system-libs branch from 4cf7593 to 7728c93 Compare July 3, 2023 02:27
@ConnorBaker ConnorBaker changed the title cmake: add USE_SYSTEM_* options cmake: add USE_SYSTEM_* options; support find_package(FP16) Jul 3, 2023
@ConnorBaker ConnorBaker force-pushed the feat/use-system-libs branch 5 times, most recently from 2740616 to a2e21c1 Compare July 3, 2023 06:22
@ConnorBaker ConnorBaker marked this pull request as ready for review July 4, 2023 02:38
@ConnorBaker ConnorBaker force-pushed the feat/use-system-libs branch 6 times, most recently from 8632c70 to c999011 Compare July 4, 2023 20:11
cmake: add USE_SYSTEM_* options; support find_package(FP16)
@ConnorBaker ConnorBaker force-pushed the feat/use-system-libs branch from c999011 to 86814cd Compare July 9, 2023 17:51
@ConnorBaker
Copy link
Author

Updated to reflect comment from pytorch/cpuinfo#153 (comment).

@Maratyszcza if you have the time, would you mind reviewing this?

@meerfrau
Copy link

meerfrau commented Sep 4, 2023

@Maratyszcza Hi Marat, this would make the life of barebone packagers much easier. Please merge it!

@Maratyszcza Maratyszcza force-pushed the master branch 10 times, most recently from be3879b to abf58f5 Compare May 27, 2024 23:01
@Maratyszcza Maratyszcza force-pushed the master branch 18 times, most recently from 5c38e5d to 5933328 Compare May 28, 2024 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants