Engine: skip CUDA-GL interop on software OpenGL (it poisons CUDA); live Voidrunner comparison captures
This commit is contained in:
1 parent
45935cc402
commit
c7ffbdb7e9
6 files changed
+3
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 314 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.9 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 MiB |
@@ -766,6 +766,9 @@ class GLWindowSink:
|
||||
self.interop = None
|
||||
renderer = GL.glGetString(GL.GL_RENDERER).decode(errors="replace")
|
||||
try:
|
||||
if any(k in renderer.lower() for k in ("llvmpipe", "softpipe", "swrast")):
|
||||
# Software GL can't share memory with CUDA, and a failed attempt leaves CUDA in an error state.
|
||||
raise RuntimeError("OpenGL is software-rendered, not on the NVIDIA GPU")
|
||||
from .glcuda import CudaGLTexture
|
||||
self.interop = CudaGLTexture(int(self.tex), w, h, hdr=self.hdr10)
|
||||
print(f"[display] {renderer}: frames go to the screen straight from the GPU")
|
||||
|
||||
Reference in new issue
Block a user