Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

Util.Cpu

Description

Get info about CPUs.

Synopsis

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.

linuxPhysicalCores :: Text -> Int Source #

Parse proccpuinfo for physical cpu count.

unique :: Ord a => [a] -> [a] Source #