Skip to content

minoki/haskell-cpu-features

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Haskell library to detect CPU features

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published