lfreist / hwinfo

cross platform C++ library for hardware information (CPU, RAM, GPU, ...)
MIT License
487 stars 88 forks source link

Outputs data incorrectly #115

Open andrucom opened 2 weeks ago

andrucom commented 2 weeks ago

I made a simple program based on this library. I am faced with incorrect data output and I do not know what the problem is, whether I made a mistake or there is an error in the library.

1. Processor CACHE

It is displayed incorrectly. On my laptop, L1 is like L2 and vice versa. The data on the home computer is generally not the same. image image

2. GPU video memory

It shows 4 gb when in fact it has 8gb image image

Source: https://github.com/andrucom/CAP

I will be grateful if you help me with this problem! I would also like to see an example using cpuid, OpenCL, if they can be used.

lfreist commented 1 week ago

Can you check the output of the example built by hwinfo? You can build and run it as described in the README.md. Thanks.

andrucom commented 1 week ago

Can you check the output of the example built by hwinfo? You can build and run it as described in the README.md. Thanks.

image image

Unfortunately, I can't check the video memory display right now because I'm not at home.

Interestingly, my friend's program shows correctly, which seems strange to me. By the way, he uses 11, and I use 10

lfreist commented 1 week ago

Mh, interesting... I fear that this is rather not an issue with hwinfo. For both, windows 10 and 11, the windows API is used to read those information...