steinwurf / cpuid Goto Github PK
View Code? Open in Web Editor NEWC++ library for detecting CPU capabilities
Home Page: https://cpuid.steinwurf.com
License: Other
C++ library for detecting CPU capabilities
Home Page: https://cpuid.steinwurf.com
License: Other
Hey.
I was looking around for a cross compiler library like this and looks like this is the best so far.
Would it be possible to add a test for F16C extensions? https://en.wikipedia.org/wiki/F16C
EAX == 1, ECX bit 29.
I'm building some Vulkan stuff (libraries) on my free time, and I'm considering using 16 bit floats for HDR textures to save some VRAM. Currently I have a pretty good sulution of converting between the two but I wouldn't mind a speedup on processors that support this.
Configure breaks:
Checking C++ compiler 'c++' : Recurse "waf-tools" for "configure" failed with: Unknown compiler: c++
(complete log in /disk-samsung/freebsd-ports/devel/cpuid/work/cpuid-8.0.0-38-g5755ad8/build/freebsd/config.log)
clang-14
FreeBSD 13.1
It's better to use the following technique instead of reading /proc/...
file.
See for details https://github.com/Itseez/opencv/pull/3568/files
See the full description in this issue in sfizz project which breaks: sfztools/sfizz#1116
I believe we also should check whether OS itself supports AVX, because OS must provide context switching for YMM registers and not all OS can do this.
See the section "Operating system support" in http://en.wikipedia.org/wiki/Advanced_Vector_Extensions
Hello,
Could you offer a version of h
file (Even in C
) for detection of CPU features?
Something which expose simple functions like hasSSE3()
, hasSSE4()
, hasAVX()
, hasAVX2()
, etc...
Thank You.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.