I guess the best way is to have the same file on all the nodes. Even if each node has a different Gres configuration, by using the NodeName= parameter, each node will find its own relevant configuration in the file. Much easier to manage this way.
Cheers, -- Kilian
