Skip to content
/ cpuwhat Public

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

License

Notifications You must be signed in to change notification settings

awr1/cpuwhat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation


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)

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages