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

Select GPU per node #944

Open
Funtime60 opened this issue Jan 8, 2024 · 3 comments
Open

Select GPU per node #944

Funtime60 opened this issue Jan 8, 2024 · 3 comments

Comments

@Funtime60
Copy link

Is your feature request related to a problem? Please describe.
While I see that multi gpu support was added for classic plugins, it either isn't available or isn't obvious with the new flows.

Describe the solution you'd like
I would like the ability to set the ffmpeg GPU selection parameter based the node. That way I could just run two nodes on my dual GPU machine and set one GPU to each node.

Describe alternatives you've considered
I haven't considered any other options as it's late at night and I cannot think on demand.

Additional context
Potentially this could be expanded to allow for more variables to be stored/used per nodes.

@HaveAGitGat
Copy link
Owner

Simple way to do this is to run 2 Node Docker containers and assign a GPU to each with the Docker container settings, that way they're kept independent. Doing it with a single Node is a bit trickier, the 'Set Video Encoder' flow plugin should auto select the GPU with least utilisation but does not work in all cases.

@Funtime60
Copy link
Author

Funtime60 commented Feb 29, 2024 via email

@HaveAGitGat
Copy link
Owner

You could try using the Custom Arguments plugin and then put -hwaccel_device 0 -gpu 0 for one node and -hwaccel_device 1 -gpu 1.

You can check the node details using Check Flow Variable and checking {{{args.deps.configVars.config.nodeID}}} or {{{args.deps.configVars.config.nodeName}}}

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