Safe Haskell | Safe-Inferred |
---|
Get info about CPUs.
Synopsis
- physicalCores :: IO Int
- getPhysicalCores :: IO Int
- envCores :: IO (Maybe Int)
- linuxPhysicalCores :: Text -> Int
- unique :: Ord a => [a] -> [a]
Documentation
physicalCores :: IO Int Source #
Get number of physical cores. This can be overidden with a CPUS environment variable. This is useful if you are running on a VM in CI and don't agree with how many cores it claims to have.
getPhysicalCores :: IO Int Source #
linuxPhysicalCores :: Text -> Int Source #
Parse proccpuinfo for physical cpu count.