https://github.com/minoki/haskell-cpu-features
A Haskell library to detect CPU features
https://github.com/minoki/haskell-cpu-features
cpuid haskell
Last synced: 3 months ago
JSON representation
A Haskell library to detect CPU features
- Host: GitHub
- URL: https://github.com/minoki/haskell-cpu-features
- Owner: minoki
- License: bsd-3-clause
- Created: 2024-06-21T13:33:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-26T07:09:17.000Z (6 months ago)
- Last Synced: 2025-06-26T19:53:25.357Z (3 months ago)
- Topics: cpuid, haskell
- Language: Haskell
- Homepage:
- Size: 91.8 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cpu-features for Haskell
This is a library to detect the features supported by the CPU running the Haskell program.
Supported platforms:
* i386/x86_64: via `cpuid`
* Windows
* macOS: uses `sysctlbyname` to detect AVX-512
* Linux
* AArch64
* macOS: via `sysctlbyname`
* Linux: via `getauxval(AT_HWCAP/AT_HWCAP2)`
* RISC-V 64
* Linux: via `getauxval(AT_HWCAP)` and hwprobe