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

Is it possible to assign a specific graphics card? #198

Closed
jt0dd opened this issue Aug 10, 2020 · 2 comments
Closed

Is it possible to assign a specific graphics card? #198

jt0dd opened this issue Aug 10, 2020 · 2 comments
Labels

Comments

@jt0dd
Copy link

jt0dd commented Aug 10, 2020

I want to use clustering to assign different GPUs to different instances of headless gl called in different threads. Is this possible in any way shape or form?

@jt0dd
Copy link
Author

jt0dd commented Aug 10, 2020

I looked through the standard: https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.2
and found no mention of hardware selection.

@dhritzkiv
Copy link
Member

Unfortunately, as of right now, there is no way. The closest parameter is powerPreference but it isn't implemented by this library, and is only a hint (you don't get fine-grained control over GPUs directly).

The reason it isn't implemented by this library is that we are using an older version of Angle, and even then, it comes with platform- and device-specific caveats. For example, on Windows, depending on the graphics card, the card's control panel defines which card is used for which process (it's not even as granular as per-thread).

Furthermore, this library likely isn't fully compatible with Node's worker threads (see #151, #182).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants