Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert frequency from kHz to mHz #70

Closed
OudomMunint opened this issue Apr 10, 2024 · 4 comments
Closed

Convert frequency from kHz to mHz #70

OudomMunint opened this issue Apr 10, 2024 · 4 comments

Comments

@OudomMunint
Copy link

How do I convert frequency from kHz to mHz, I'm getting clockspeeds for gpu core and vram but they are printed in kHz and I can't divide them by 1000

@falahati
Copy link
Owner

please post a sample code. and why cant you divide them by 1k? I don't understand that part.

@OudomMunint
Copy link
Author

@falahati it my bad,
I tried to do Console.WriteLine("Core Clock: {0}", gpu.BoostClockFrequencies.GraphicsClock.Frequency) / 1000 or something to that extent.
It got around it by doing:
var graphicsClockKHz = gpu.BoostClockFrequencies.GraphicsClock.Frequency;
var graphicsClockMHz = graphicsClockKHz / 1000;
Console.WriteLine("GPU Core Speed: {0} MHz", graphicsClockMHz);

On a side note is there a flag to detect if GPU is integrated or dedicated? It used to be simple but since Intel now has dedicated gpus and amd has integrated GPUs it's gotten quite tricky

@falahati
Copy link
Owner

Yes, PhysicalGPU.GPUType == GPUType.Discret

@OudomMunint
Copy link
Author

@falahati Thanks I'm able to use it to filter GPUs. Thanks!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants