cpuwhat

Nim utilities for advanced CPU operations: CPU identification, bindings to assorted intrinsics

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License ISC
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install cpuwhat
choosenim install cpuwhat
git clone https://github.com/awr1/cpuwhat

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
cpuwhat - - - - - - -

Source

Repository https://github.com/awr1/cpuwhat
Homepage https://github.com/awr1/cpuwhat
Registry Source nimble_official

README


cpuwhat is a Nim library for providing utilities for advanced CPU operations. Features (and planned features) include:

  • [X] x86 Support
  • [ ] ARM Support
  • [X] Querying CPU Name
  • [ ] Querying CPU Vendor + Microarchitecture
  • [ ] Querying CPU Cache Topology
  • [X] Testing Presence of CPU Instruction Set Extensions
  • [X] (WIP) Compiler Intrinsics (currently supporting MMX, SSE 1-3)

Query Example

import cpuwhat

echo(cpuName())
echo("has SSE2:     ", hasSSE2())
echo("has AVX512BW: ", hasAVX512BW())

Intrinsics Example

import cpuwhat / intrinsics / sse

let zero = mm_setzero_ps()

License

Uses the Internet Systems Consortium (ISC) open-source license.