I want to automatically run code on all CUDA devices except the one running the primary display.
How can I tell (programatically) which cuda device id corresponds to the prmary display? Or indeed
if a cuda device has any dispay attached to it?
I’ve searched, but cant find anything. Thanks in advance.