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.
- 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
Raw CPUID
Execute the CPUID instruction
:: Word32 | Operation (EAX) |
-> Word32 | ECX |
-> IO (Word32, Word32, Word32, Word32) | Result (EAX, EBX, ECX, EDX) |
Execute the CPUID instruction setting ECX as well
High level CPU capabilities
Information about the features supported by your CPU
getCPUInfo :: IO CPUInfo Source
Get a CPUInfo