Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module is for detecting which SIMD instruction sets your CPU supports. In particular, it can detect SSE4.2, AVX and AVX2.
Synopsis
- cpuid :: Word32 -> IO (Word32, Word32, Word32, Word32)
- cpuidExtended :: Word32 -> Word32 -> IO (Word32, Word32, Word32, Word32)
- data CPUInfo = CPUInfo {}
- getCPUInfo :: IO CPUInfo
- hasSSE42 :: CPUInfo -> Bool
- hasAVX :: CPUInfo -> Bool
- hasAVX2 :: CPUInfo -> Bool
- featureSelect :: CPUInfo -> a -> [(CPUInfo -> Bool, a)] -> a