Skip to content

Releases: seanmonstar/num_cpus

v1.16.0

29 Jun 12:59
Compare
Choose a tag to compare

Features

  • add support for AIX operating system

Fixes

  • update hermit-abi to 0.3.0

New Contributors

v1.15.0

20 Dec 16:18
Compare
Choose a tag to compare

Fixes

  • update hermit-abi

New Contributors

v1.14.0

03 Nov 18:22
Compare
Choose a tag to compare

Features

New Contributors

v1.13.1

20 Dec 19:38
Compare
Choose a tag to compare

Fixes

  • fix parsing zero or multiple optional fields in cgroup mountinfo.

v1.13.0

15 Apr 16:19
Compare
Choose a tag to compare

Features

  • add Linux cgroups support when calling get().

Linux cgroups are a way to restrict the amount of resources a container can use. With this change, most libraries and applications deciding the number of threads to use via num_cpus::get() will spawn less threads, resulting in better usage of the CPU, and typically perform better.

image

v1.8.0

29 Dec 01:06
Compare
Choose a tag to compare

Features

  • add wasm-unknown-unknown target support

v1.7.0

28 Sep 17:56
Compare
Choose a tag to compare

Features

  • add get_physical support for macOS

Fixes

  • use _SC_NPROCESSORS_CONF on Unix targets

v1.6.1

22 Jun 20:11
Compare
Choose a tag to compare
  • fixes sometimes incorrect num on Android/ARM Linux (#45)

v1.6.0

21 Jun 06:38
Compare
Choose a tag to compare
  • get_physical gains Windows support

v1.5.1

21 Jun 06:39
Compare
Choose a tag to compare
  • fix get to return 1 if sysconf(_SC_NPROCESSORS_ONLN) failed