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

Allow VTK pypi wheel to use GPUs in headless machines #88

Open
jspanchu opened this issue Jul 16, 2024 · 2 comments
Open

Allow VTK pypi wheel to use GPUs in headless machines #88

jspanchu opened this issue Jul 16, 2024 · 2 comments
Assignees
Labels
task New feature or request

Comments

@jspanchu
Copy link
Member

Currently, the vtk package in pypi does not include EGL code path. As a result, it cannot be used in headless machines. Instead, one has to use vtk-egl from gitlab package registry. The goal of this issue is to explore distribution of a single wheel on pypi which works in headless machines with GPUs as well as normal machines with a display.

It might be possible to refactor the vtkXOpenGLRenderWindow such that EGL offscreen rendering is activated when there is no X server.

A VTK user managed to get EGL working at runtime with glad instead of glew (the current OpenGL loader in VTK). See https://gitlab.kitware.com/vtk/vtk/-/issues/18547 and https://gitlab.kitware.com/vtk/vtk/-/issues/18547#note_1475081

@aashish24 @johnkit @jourdain

@jspanchu jspanchu self-assigned this Jul 16, 2024
@johnkit johnkit added the task New feature or request label Jul 31, 2024
@johnkit
Copy link
Collaborator

johnkit commented Sep 4, 2024

@jourdain
Copy link
Collaborator

done and available in VTK 9.4

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

No branches or pull requests

3 participants