Lines Matching +full:cmake +full:-
3 A cross-platform C library to retrieve CPU features (such as available
6 # GitHub-CI Status
11 | :-- | --: | --: | --: | --: |
12 …[CMake][i1a0]][l1a0]<br/>[![Bazel][i1a1]][l1a1] | [![CMake][i2a0]][l2a0]<br/>![Bazel][d1] | [![CMa…
13 | AArch64 | [![CMake][i1b0]][l1b0]<br/>[![Bazel][i1b1]][l1b1] | ![CMake][d0]<br/>![Bazel][d1] | ![C…
14 | ARM | [![CMake][i1c0]][l1c0]<br/>![Bazel][d1] | ![CMake][d0]<br/>![Bazel][d1] | ![CMake][d0]<br/>…
15 | MIPS | [![CMake][i1d0]][l1d0]<br/>![Bazel][d1] | ![CMake][d0]<br/>![Bazel][d1] | ![CMake][d0]<br/…
16 | POWER | [![CMake][i1e0]][l1e0]<br/>![Bazel][d1] | ![CMake][d0]<br/>![Bazel][d1] | ![CMake][d0]<br…
17 | RISCV | [![CMake][i1f0]][l1f0]<br/>![Bazel][d1] | ![CMake][d0]<br/>![Bazel][d1] | ![CMake][d0]<br…
18 | LOONGARCH | ![CMake][d0]<br/>![Bazel][d1] | ![CMake][d0]<br/>![Bazel][d1] | ![CMake][d0]<br/>![Ba…
19 | s390x | [![CMake][i1h0]][l1h0]<br/>![Bazel][d1] | ![CMake][d0]<br/>![Bazel][d1] | ![CMake][d0]<br…
21 [d0]: https://img.shields.io/badge/n%2Fa-lightgrey?&logo=cmake
22 [d1]: https://img.shields.io/badge/n%2Fa-lightgrey?&logo=data:image/svg%2bxml;base64,PHN2ZyByb2xlPS…
23 …/workflow/status/google/cpu_features/amd64_linux_cmake.yml?branch=main&event=push&label=&logo=cmake
25 …orkflow/status/google/cpu_features/aarch64_linux_cmake.yml?branch=main&event=push&label=&logo=cmake
27 …ns/workflow/status/google/cpu_features/arm_linux_cmake.yml?branch=main&event=push&label=&logo=cmake
28 …s/workflow/status/google/cpu_features/mips_linux_cmake.yml?branch=main&event=push&label=&logo=cmake
29 …/workflow/status/google/cpu_features/power_linux_cmake.yml?branch=main&event=push&label=&logo=cmake
30 …/workflow/status/google/cpu_features/riscv_linux_cmake.yml?branch=main&event=push&label=&logo=cmake
31 …/workflow/status/google/cpu_features/s390x_linux_cmake.yml?branch=main&event=push&label=&logo=cmake
32 …orkflow/status/google/cpu_features/amd64_freebsd_cmake.yml?branch=main&event=push&label=&logo=cmake
33 …/workflow/status/google/cpu_features/amd64_macos_cmake.yml?branch=main&event=push&label=&logo=cmake
35 …orkflow/status/google/cpu_features/amd64_windows_cmake.yml?branch=main&event=push&label=&logo=cmake
52 - [Design Rationale](#rationale)
53 - [Code samples](#codesample)
54 - [Running sample code](#usagesample)
55 - [What's supported](#support)
56 - [Android NDK's drop in replacement](#ndk)
57 - [License](#license)
58 - [Build with cmake](#cmake)
59 - [Community Bindings](#bindings)
64 - **Simple to use.** See the snippets below for examples.
65 - **Extensible.** Easy to add missing features or architectures.
66 - **Compatible with old compilers** and available on many architectures so it
69 - **Sandbox-compatible.** The library uses a variety of strategies to cope
72 - **Thread safe, no memory allocation, and raises no exceptions.**
75 - **Unit tested.**
120 when using a compiler that is slow to extract individual bits from bit-packed
126 instruction set (e.g., `g++ -mavx`) and sets `has_avx` accordingly.
173 brand : Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz
182 % ./build/list_cpu_features --json
183 {"arch":"x86","brand":" Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz","family":6,"model":45,"step…
190 |---------|:----:|:-------:|:-------:|:-------:|:-------:|:-------:|:---------:|:-------:|
201 [getauxval](https://www.gnu.org/software/libc/manual/html_node/Auxiliary-Vector.html)
218 …ement of for the NDK's [cpu-features.h](https://android.googlesource.com/platform/ndk/+/main/sourc…
227 <a name="cmake"></a>
228 ## Build with CMake
230 Please check the [CMake build instructions](cmake/README.md).
235 - Run `list_cpu_features`
237 cmake -S. -Bbuild -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
238 cmake --build build --config Release -j
239 ./build/list_cpu_features --json
242 _Note_: Use `--target ALL_BUILD` on the second line for `Visual Studio` and `XCode`.
244 - run tests
246 cmake -S. -Bbuild -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
247 cmake --build build --config Debug -j
248 cmake --build build --config Debug --target test
251 …_Note_: Use `--target RUN_TESTS` on the last line for `Visual Studio` and `--target RUN_TEST` for …
254 - install `cpu_features`
256 cmake --build build --config Release --target install -v
259 _Note_: Use `--target INSTALL` for `Visual Studio`.
266 cmake --build build --config Release --target install -v -- DESTDIR=install
274 - .Net
275 - https://github.com/toor1245/cpu_features.NET
276 - Python
277 - https://github.com/Narasimha1997/py_cpu
278 - Java
279 - https://github.com/aecsocket/cpu-features-java