-
Notifications
You must be signed in to change notification settings - Fork 231
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
Can't select GPU for EGL headless rendering #92
Comments
Does it make sense that if my nvidia device is |
@guy4261 Hi, I'm meeting the same issue. Have you resolve it? |
@Guptajakala sorry - 1. I didn't solve this, 2. I do believe that on my machine it's the |
I submitted a PR (#60) a couple months ago that does this. Just set the environment variable
|
Great @keunhong !!! Thanks!!! |
@guy4261 I dont think you need. Just run export EGL_DEVICE_ID=1 before you run your python file. |
Looks like the commit should be in 0.1.33 so shouldn't be necessary. |
I also had the following issue:
It was related to incompatible versions of pyrender and PyOpenGL. However, is not working for me using headless rendering with EGL. I now have the following error |
@oarriaga What was the incompatibility issue and what was eventually the compatible versions that you used? |
How do I do this on Windows 11? |
TL;DR - how can I select the GPU that the EGL headless rendering runs on? I want to use
/dev/nvidia2
but it seems only/dev/nvidia0
is supported.===
I have two machines in the cloud that are Docker containers of the same image (Ubuntu). When I run the code from the EGL offscreen rendering colab notebook as a Python script, one renders the bottle well, while the other gives me the error below. The working machine has its GPU mounted on
/dev/nvidia0
while on the faulty machine it is on/dev/nvidia2
.It seems that
egl_display = egl.eglGetDisplay(egl.EGL_DEFAULT_DISPLAY)
tries picking on/dev/nvidia0
and fails if it is not available. Since I can't control where will the GPU get mounted on my machine, is there a way to make OpenGL/EGL pick the other device? I tried multiple solutions found around the web, from different environment variables to creating a symlink, but to no avail.The error:
The text was updated successfully, but these errors were encountered: