Comments (4)
x86 provides all the information you need via the cpuid
instruction and it is quite fast (a few hundreds of cycles). Using /proc/cpuinfo
requires to read the file system and parse text which is both more error prone and slower. This can be added for sure but is it worth it?
from cpu_features.
Ah! Thanks. I didn't even see that line (not that it's an excuse, but I'm having some troubles with my right eye today. Urgh).
Yea. Definitely no point then.
from cpu_features.
Happy to help!
from cpu_features.
Whether SSE (XMM register saving) is supported by the OS is the one thing that x86 doesn't expose, unless the CPU also has AVX (via the XCR0 register). Detecting this, if it's worth bothering, requires reading /proc/cpuinfo
on Linux x86-32. (x86-64's definition requires the OS to support XMM register saving, so x86-64 user-mode code can assume SSE and SSE2 support.)
from cpu_features.
Related Issues (20)
- AVX_VNNI support? HOT 4
- Missing AVX512_FP16 detection HOT 2
- The install target fails to install some headers HOT 3
- Can't build as static OR shared in Haiku (OS) HOT 8
- Add uarch support for AWS r7iz HOT 5
- RISC-V devicetree "riscv,isa" comment is no longer accurate HOT 5
- New release please HOT 1
- I was aske to report this ecause it might aso be a security issue. BREW SHA256 error HOT 6
- BREW SHA256 error HOT 1
- clang-format check is broken HOT 2
- Support Loongarch
- Support Apple M1/M2 HOT 4
- Bump CMake to 3.13 HOT 1
- Documentation error or CMake error when linking HOT 2
- Release v0.9.0 HOT 1
- ci: Support Apple M1/M2
- ci: Support Loongson CPUs
- [tests] Split tests
- FreeBSD Arm64 MIDR_EL1 detection info
- Trivy scan detects multiple misconfigurations related to Dockerfile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpu_features.