cpuwhat is a Nim library for providing utilities for advanced CPU operations. Features (and planned features) include:
- x86 Support
- ARM Support
- Querying CPU Name
- Querying CPU Vendor + Microarchitecture
- Querying CPU Cache Topology
- Testing Presence of CPU Instruction Set Extensions
- (WIP) Compiler Intrinsics (currently supporting MMX, SSE 1-3)
import cpuwhat
echo(cpuName())
echo("has SSE2: ", hasSSE2())
echo("has AVX512BW: ", hasAVX512BW())
import cpuwhat / intrinsics / sse
let zero = mm_setzero_ps()
Uses the Internet Systems Consortium (ISC) open-source license.