flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.5k stars 287 forks source link

Mango Hud does not grab any GPU information on multi-GPU setups #1440

Closed november781 closed 4 weeks ago

november781 commented 1 month ago

Describe the bug

I have both an RTX 3070 and an AMD 5800XT in my system. All redering is being done on the 5800xt and the 3070 is really just here for the NVENC encoder. However MangoHud has just given up on showing any GPU information since I added the Nvidia card to my system.

List relevant hardware/software information

To Reproduce Steps to reproduce the behavior:

  1. add an extra GPU to a system, probably an AMD + Nvidia issue when not using optimus/prime
  2. make sure MangoHud is configured to show GPU data
  3. Launch a game
  4. See error

Expected behavior MangoHud should grab GPU details from at least one card if not both, or preferably have a way to specify which card to pull data for

Screenshots Screenshot_20240923_105613

Additional context MangoHud.conf

gort818 commented 1 month ago

Can you test this branch please? https://github.com/flightlessmango/MangoHud/tree/multi-gpu-attempt

november781 commented 1 month ago

Can you test this branch please? https://github.com/flightlessmango/MangoHud/tree/multi-gpu-attempt

Tried building it and running vkcube with the resulting binary and got no change.

I cloned the repo, switched to the multi-gpu-attempt branch, ran the build script then went into the releases folder and ran the mangohud binary with vkcube. If that is the wrong way to do this please let me know

image

gort818 commented 1 month ago

Well the "binary" is basically just a script that sets the environmental variable, I do not believe you are using the newly built library that way.

Can you install it after building it and please try again

november781 commented 1 month ago

Well the "binary" is basically just a script that sets the environmental variable, I do not believe you are using the newly built library that way.

Can you install it after building it and please try again

ran the install portion of the build script and now its just seg faulting image

But now that I simply did a dnf reinstall mangohud I'm getting GPU stats....

something is odd here. I'm now back on the fedora packages but I also have GPU stats from the rendering card... full ./build uninstall and dnf remove mangohud then reinstalled from DNF...

gort818 commented 1 month ago

That is odd.. I just pushed a commit that might fix the error above. The fedora repo version should not have the mutli gpu stuff

november781 commented 1 month ago

Ill check it in the morning when the commit hits github. I'm also gonna see if I cant get back to the state I was at the start of all of this... because even after a reboot I'm still seeing the multi-GPU stuff

edit: dont know if that was intended to get pushed to master but I see the commit, its just not in the multi-gpu-attempt branch and master fails to build right now

gort818 commented 1 month ago

oh yeah sorry the multi gpu stuff was pushed to master, should just need to build master branch, what errors are you getting trying to build?

november781 commented 1 month ago

oh yeah sorry the multi gpu stuff was pushed to master, should just need to build master branch, what errors are you getting trying to build?

its building now, but its core dumping when I try to run now image

flightlessmango commented 4 weeks ago

This should be resolved in latest master