1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 15:12:30 +02:00

392 Commits

Author SHA1 Message Date
Mizux Seiha
782c79ff1d ci: rework toolchain Dockerfile 2024-12-11 19:42:08 +01:00
Mizux Seiha
f2453bd5f8 script: Bump bootlin toolchains 2024-12-11 15:11:49 +01:00
Guillaume Chatelet
bce3978813
[bazel] Add missing platform dependency (#375)
This is required with Bazel 8 that drops the support for WORKSPACE file.
2024-12-10 13:13:09 +01:00
Christoph Grüninger
0bc979d7ca
cmake: Remove useless check for CMP0077 (#372)
cpu_features requires CMake 3.13 which sets CMP0077
always to NEW.
2024-12-09 11:45:22 +01:00
tinyboxvk
3db721edf9
Bump actions/checkout to v4 (#371)
Signed-off-by: tinyboxvk <viruskiller@protonmail.com>
2024-11-12 14:08:10 +01:00
Brad Smith
aabbd16864
Add OpenBSD Arm64 support (#367) 2024-11-08 11:14:32 +01:00
Guillaume Chatelet
7a8174a371
Switch to cpu_features to bazelmod (#365) 2024-09-13 14:31:12 +02:00
Guillaume Chatelet
c6a22fc617
Remove trailing whitespace 2024-09-13 14:29:54 +02:00
Guillaume Chatelet
164bcd7eb0
Move c99 flag from BUILD file to bazel cmd line (#366)
* Move `c99` flag from BUILD file to bazel cmd line

Requiring c99 for everyone breaks downstream users.

* Remove requiring bzlmod
2024-09-13 11:53:30 +02:00
Guillaume Chatelet
747d711a36
Add MODULE.bazel.lock to .gitignore
New versions of Bazel create this file whether we use bzlmod or not.
2024-09-13 11:37:55 +02:00
Guillaume Chatelet
8e60d3f9be
Forward fix cpu_features_macros.h (#364)
This is a fix for https://github.com/google/cpu_features/pull/363 . The preprocessor check must be done in two steps.
2024-09-10 13:12:11 +02:00
Jamie Vital
6aecde59d3
Fix: Windows does not define __ARM_NEON (#363)
* Windows does not define __ARM_NEON

However, Windows requires NEON to work, so assume it is there if build with MSVC

* Clarify NEON availability in MSVC targeting arm64

* Fix Formatting
2024-09-05 16:23:19 +02:00
Mykola Hohsadze
c5fc491337
Add CI MacOS Arm64 support (#356)
* Add CI MacOS Arm64 support

* Update CMAKE_INSTALL_PREFIX

* Rename aarch64 to arm64 for macos github workflows

* Add comment after macos-latest
2024-08-29 10:48:33 +02:00
Mykola Hohsadze
881690080d
Fix bazel build testing for macos arm64 (#358) 2024-08-28 11:28:12 +02:00
Mykola Hohsadze
c6bb479895
Update amd64 macos workflow to use X86 arch (#355)
* Update AMD64 macos workflow to use X86 arch

* Set macos-13 for nmake in amd64_macos_cmake.yml

* Add comment after macos-13
2024-08-28 10:43:24 +02:00
Guillaume Chatelet
685a6a1cca
Remove CI support for FreeBSD (#360)
* Remove CI support for FreeBSD

* Revert "Remove CI support for FreeBSD"

This reverts commit 22e78ebe19e86782521396068db85d4f8ce93fae.

* Disable workflow by renaming it

* Update badges in README.md
2024-08-27 14:47:40 +02:00
Guillaume Chatelet
a4890d1ba1
Revert s/__ARM_NEON/__ARM_NEON__/g (#361) 2024-08-27 14:33:23 +02:00
Mykola Hohsadze
d4712c8def
Update AArch64 features to Linux 6.10.6 (#359) 2024-08-27 13:12:10 +02:00
Mykola Hohsadze
947192f996
Fix run_integration.sh (#357)
* Update QEMU version from 7.1.0 to 9.0.2

* Update qemu-download url

* Fix ensurepip module is not found
2024-08-27 11:52:26 +02:00
Tamas Zsoldos
104602c8ae
Update AArch64 features to Linux 6.6. (#347) 2023-11-27 09:58:26 +01:00
Guillaume Chatelet
8cfb520efb [NFC] clang-format the code base 2023-09-25 07:35:53 +00:00
Guillaume Chatelet
ec7d390a90
Remove unused function (#343)
This is causing the build to fail with stricter warnings.
`error: no previous prototype for function 'CpuFeatures_IsHwCapCpuidSupported' [-Werror,-Wmissing-prototypes]`
2023-09-21 15:11:28 +02:00
Corentin Le Molgat
77d27cb108 fix -Wstrict-prototypes error
note: tested using: `add_compile_options("-Werror" "-Wstrict-prototypes")`
2023-09-21 14:25:01 +02:00
Mykola Hohsadze
89a3f0358a
Add FreeBSD Arm64 support (#295)
* Add FreeBSD Arm64 detection

Getting all the features is handled by reading /var/run/dmesg.boot. Feature detections were taken from the freebsd kernel code sys/arm64/arm64/identcpu.c

* Add FreeBSD Arm64 tests

* Add flagm, flagm2 and rng detection

* Add HWCAP FreeBSD AArch64

* Update include to use linux hwcaps for powerpc

* Add FreeBSD aarch64 impl

* Separate Hwacps to freebsd and linux implementation

* Add aarch64 midr_el1 implementation

* Add detection hwcap cpuid to hwcaps.h

* Add MIDR_EL1 tests
2023-09-19 11:02:25 +02:00
Mykola Hohsadze
494d9657ef
clang-format: hwcaps.h (#340) 2023-09-19 10:36:05 +02:00
Guillaume Chatelet
089f34635f
[misc] Update release script (#339) 2023-09-14 15:20:27 +02:00
Guillaume Chatelet
ba4bffa86c Release v0.9.0 v0.9.0 2023-09-14 12:15:33 +00:00
Mizux
af6fb5f0d4
ci: Fix clang-format (#336)
Fix #311
2023-09-14 11:54:10 +02:00
Mykola Hohsadze
312e990c6f
Add Intel AMX-FP16 detection (#332) 2023-09-14 10:22:16 +02:00
Mizux
688decfc80
cmake: Use CpuFeatures:: as TARGET namespace (Fix #333) (#334) 2023-09-14 10:19:28 +02:00
Mykola Hohsadze
b960bcf0f5
Add ZEN2 4800S 0880F40 (#331) 2023-09-05 14:14:53 +02:00
Mykola Hohsadze
aeaa84ecf4
Add Intel Alder Lake N detection (#330) 2023-09-05 14:14:21 +02:00
Mykola Hohsadze
248aa1b938
Add AMD ZEN4 Genoa detection (#329) 2023-09-05 14:13:54 +02:00
Mykola Hohsadze
199d299ce5
Add ZEN4 Phoenix detection (#328) 2023-09-05 14:13:27 +02:00
Guillaume Chatelet
fd4ffc1632
Fix badge shebang and enable badges from workflow files (#327)
* Fix badge shebang and enable badges from workflow files

* Remove chmod +x from documentation
2023-08-31 14:11:42 +02:00
Mizux
b39a27d694
fix generate_badges.d (#326) 2023-08-31 13:18:44 +02:00
Guillaume Chatelet
586ec599b2 Add hover text to badges 2023-08-31 09:32:48 +00:00
Alexander Mitin
52874f0ced
Add BUILD_INSTALL option to manage 'install' target (#325) 2023-08-31 10:58:45 +02:00
Mizux
2a3ef54701
ci: Add amd64 macos bazel workflow (#324)
* ci: Add amd64 MacOS Bazel job

* bazel: Fix MacOS build

* add amd64_macos_bazel badge
2023-08-30 17:17:34 +02:00
Guillaume Chatelet
e2d0f2ca21 Bumping CMake minimum version to 3.13
Following gtest minimum version https://github.com/google/googletest/blob/v1.14.0/CMakeLists.txt#L4
2023-08-30 13:55:44 +00:00
Guillaume Chatelet
f2e02cd86e Transpose badge table for better display 2023-08-30 13:35:54 +00:00
Guillaume Chatelet
63cc2980df Update badges 2023-08-30 13:29:50 +00:00
Corentin Le Molgat
60aa4e343a Update badges generator. 2023-08-30 13:19:47 +02:00
Corentin Le Molgat
c57960579b ci: rework bazel workflows to use a docker container 2023-08-30 13:19:47 +02:00
Mizux Seiha
468426e7c7 ci: add bazel docker for amd64 and arm64 2023-08-30 13:19:47 +02:00
Mizux Seiha
5e105a29f5 update .dockerignore 2023-08-30 13:19:47 +02:00
Guillaume Chatelet
810eb5b10e Use bazelisk instead on bazel 2023-08-30 13:19:47 +02:00
Guillaume Chatelet
5d97a14add Add aarch64 ubuntu bot 2023-08-30 13:19:47 +02:00
Guillaume Chatelet
be65a3d148
Fix bazel - use textual_hdrs for inl files (#322) 2023-08-29 10:44:07 +02:00
Weihang Ding
bd580370ee
Fix windows x86 and arm64 build and add an option to enable/disable target list_cpu_features (#317)
* Add an option to enable/disable target list_cpu_features

* Fix windows x86 and arm64
2023-08-28 16:29:00 +02:00