Questions tagged [cpuid]

CPUID is an Intel x86 and x86_64 processor instruction that returns the processor type and the presence of particular features.

Originally introduced by Intel, the CPUID instruction returns the processor type and the presence of features such as MMX/SSE.

163 questions
0
votes
1 answer

Check exist on my platform commands AVX, SSE (SSE1-SSE4.2), FPU

i have a task: Check exist on my platform commands AVX, SSE (SSE1-SSE4.2), FPU. My assembler code do not work, and i can not unterstand why. I think so the thing in not correct description output modifiers. unsigned int AVX; unsigned int…
Nikolay
  • 25
  • 3
0
votes
0 answers

asm codes don't compile in c++ under arm(docker environment)

I'm writing codes to get cpu information to identify a cpu. And I find answer from this is exactly what I need. void getCpuid(std::uint32_t *p) { __asm__ __volatile__ ("cpuid" : "=a"(p[0]), "=b"(p[1]), …
taptiptop
  • 13
  • 6
0
votes
1 answer

cpuid: reported micro-architecture seems ambiguous

Ubuntu 20.04 LTS. Note (unknown type) reported: $ cpuid | less CPU 0: vendor_id = "GenuineIntel" version information (1/eax): processor type = primary processor (0) family = 0x6 (6) model = 0xe (14) …
ecwdw 23e3e23e
  • 375
  • 4
  • 11
0
votes
0 answers

Why cpuid returns the wrong answer?

When I run this I get that my system is 32-bit but I am running an Intel 7700k cpu which is a 64-bit even in control panel it says the windows arch is 64bit #include #include using namespace std; bool check_cpu() { int…
loaded_dypper
  • 262
  • 3
  • 12
0
votes
2 answers

Max CPUID standard leaf / CPUID-features dependent on MSRs?

Is the maximum CPUID standard leaf changeable, i.e. might it be reconfigured by the kernel to enable additional CPUID values ? Are there CPUID feature-bits that are dependent on the configuration of certain MSRs ?
user6562673
0
votes
1 answer

Calling cpuid before rdtsc to prevent out of order?

I am trying to call cpuid before my rdtsc function to prevent out of order. I initially used this rdtsc function to get 2 timestamps and often I get negative numbers, which is undesirable. This is the rdtsc function, how should I implement cpuid? Or…
0
votes
0 answers

Translate "Family X Model YY Stepping Z" into unique processor id

Is there any dataset/way to obtain a unique processor identifier for some processor's model description? I do not know what is this info called but interested in some translation method to go from, for example, Family 25 Model 80 Stepping 0 to Intel…
reza
  • 90
  • 1
  • 14
0
votes
1 answer

How do I know which AVX C functions are available on different processor models

Basically the title. For example, I am trying to run instructions like: _mm256_load_pd, _mm256_add_pd, _mm256_stream_pd and the 128 bits version on the processor: Intel Xeon, E5630, 2.53 GHz, IBM HS22. But I am getting Illegal instruction any idea…
C. Cristi
  • 569
  • 1
  • 7
  • 21
0
votes
1 answer

Should I look up both Intel and AMD x86 Instruction Set reference for CPUID bits meaning?

Should I look up both Intel and AMD x86 Instruction Set reference for CPUID bits meaning? This makes me suspicious (from Wikipedia): ABM is only implemented as a single instruction set by AMD; all AMD processors support both instructions or…
Alex Guteniev
  • 12,039
  • 2
  • 34
  • 79
0
votes
1 answer

Why does it work to store CPUID results in an int array and pass to printf "%s"?

#include int main() { int index = 0; int reg[3]; __asm__( "cpuid \n\t" : "=b"(reg[0]), "=c"(reg[2]), "=d"(reg[1]) // editor's note: CPUID also modifies EAX; this buggy code doesn't tell the compiler…
0
votes
2 answers

Why VS C/C++ AVX512 compiled software work on my system while my CPU has no AVX512?

I have seen recently that Visual Studio 2019 Preview has added an option to compile with AVX512. OK, I tried it and it worked. But why does it work while my CPU has no such capability? I am using the following C/C++ script to detect the CPU…
0
votes
1 answer

What's the difference in CPUID work on 32-bit and 64-bit machines?

My question is what is the difference in CPUID work on 32-bit and 64-bit machines? Maybe there are some differences in the way we call CPUID or the way it returns the result, like, we should check RAX and other registers, maybe the information…
ans
  • 378
  • 1
  • 5
  • 18
0
votes
1 answer

Repeating syntax errors at compile time

In my project I need to determine what SIMD instruction set the CPU supports. The problem is that when I try to do a test compile I get a series of errors that repeat several times like the compiler is parsing the code multiple times. The reason for…
0
votes
0 answers

Getting CPUID Into in 64 bit assembly?

So, I'm trying to pull info from the CPUID function. For now, I just want the stepping info, which should be contained in the first 3 bits in %rax after calling cpuid. However, when I get the data, then bitwise and it with 7, I get a segfault. Any…
Donovan Jenkins
  • 133
  • 1
  • 13
0
votes
1 answer

Retrieve specific CPU feature

There are a lot of information how to inventory computer hardware but I'm intrigued with thought of retrieving information about specific CPU register. Is it possible to do with PowerShell? I'm not talking about inventing CPUID again, I need…
user9171470