cpu-features: A library to detect CPU features

[ bsd3, library, program, system ] [ Propose Tags ] [ Report a vulnerability ]
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.16.0.0 && <4.22), cpu-features [details]
License BSD-3-Clause
Copyright 2025 ARATA Mizuki
Author ARATA Mizuki
Maintainer minorinoki@gmail.com
Revised Revision 1 made by aratamizuki at 2025-04-26T06:57:10Z
Category System
Home page https://github.com/minoki/haskell-cpu-features
Bug tracker https://github.com/minoki/haskell-cpu-features/issues
Uploaded by aratamizuki at 2025-04-26T06:22:58Z
Distributions
Executables cpu-features-demo
Downloads 3 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-04-26 [all 1 reports]

Readme for cpu-features-0.1.0.0

[back to package description]

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