Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
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 #