An open API service indexing awesome lists of open source software.

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

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