How to force graphics to run on specific GPU with nvidia-prime

The $DISPLAY variable when run from my desktop machine’s terminal yields

echo $DISPLAY
:0

When run on the virtual terminal over ssh to the server, I get

echo $DISPLAY
localhost:10.0

I think the problem is that the X forwarding is done on top of a Xwayland compatibility layer.
The remote server display works well on the phoronix test suite when it automatically selects the first Nvidia graphics card.

The problem is that I cannot select which Nvidia graphics card provider I want to at will.
This is because xrandr --listproviders doesn’t return me anything.

I want the rendering to happen on the Xserver. For some of the phoronix test suites, it doesn’t really matter that the graphics is piped to my computer’s desktop monitor or not since I only want to stress test the cards.

Right now, all I want is the capability to select which Nvidia Graphics cards that I am using to do the test.

I think I have realized that gdm3 doesn’t really have anything to do with my issue since it appears unrelated, so I have purged it from the system.

Does that clarify the issue that I am having?
How would I get it so that xrandr --listproviders actually provides me the graphics cards on the system?

Thanks!