Skip to content

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

Open
ConnorBaker wants to merge 1 commit intoMaratyszcza:masterfrom
ConnorBaker:feat/use-system-libs
Open

cmake: add FP16_USE_SYSTEM_* options; support find_package(FP16)#23
ConnorBaker wants to merge 1 commit intoMaratyszcza:masterfrom
ConnorBaker:feat/use-system-libs

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:

  • FP16_USE_SYSTEM_LIBS
  • FP16_USE_SYSTEM_GOOGLEBENCHMARK
  • FP16_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 7 times, most recently 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 11 times, most recently from abf58f5 to 8d5f685 Compare May 27, 2024 23:10
@Maratyszcza Maratyszcza force-pushed the master branch 17 times, most recently from 5c38e5d to 5933328 Compare May 28, 2024 04:50
@BwL1289
Copy link

BwL1289 commented Aug 17, 2025

@ConnorBaker any chance you can give me read/write permissions to the repo? would love to sync upstream

@BwL1289
Copy link

BwL1289 commented Aug 20, 2025

@ConnorBaker thanks! Looks like I need permission to push to your branch
Screenshot 2025-08-20 at 8 33 04 AM

@ConnorBaker ConnorBaker force-pushed the feat/use-system-libs branch from 86814cd to 82fdc40 Compare August 21, 2025 21:06
Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
@ConnorBaker ConnorBaker force-pushed the feat/use-system-libs branch from 82fdc40 to ce77093 Compare August 21, 2025 21:07
@ConnorBaker
Copy link
Author

@BwL1289 I saw the same error when viewing your PR; not sure why that came up. I've rebased on the latest and force-pushed and changed the names to have a FP16_ prefix.

@ConnorBaker ConnorBaker changed the title cmake: add USE_SYSTEM_* options; support find_package(FP16) cmake: add FP16_USE_SYSTEM_* options; support find_package(FP16) Aug 21, 2025
@BwL1289
Copy link

BwL1289 commented Aug 22, 2025

Thanks @ConnorBaker!

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.

3 participants