E
E
Eugene Lerner2021-01-21 17:40:53
Programming
Eugene Lerner, 2021-01-21 17:40:53

Is it possible to programmatically determine the parameters of the CPU, GPU?

Is it possible to programmatically obtain the clock frequency, bit depth, number of cores, registers, cache memory size of all levels?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Armenian Radio, 2021-01-21
@ehevnlem

Yes, I have. Otherwise, how would CPU-Z and analogues work.

E
egor_nullptr, 2021-01-21
@egor_nullptr

Can. Article with explanations and examples https://en.wikipedia.org/wiki/CPUID

A
Anvar Shakhmaev, 2021-01-21
@RxR

On C it is possible, but for different OS different api: if linux, then PosixAPI, if windows WinAPI. Accordingly, these APIs provide a programming interface to low-level calls.
It is possible and not only in C, but it is more convenient on it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question