Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

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 #