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

Get CUDA/OpenGL interop #5

Open
Teja10 opened this issue Dec 17, 2023 · 2 comments
Open

Get CUDA/OpenGL interop #5

Teja10 opened this issue Dec 17, 2023 · 2 comments
Assignees

Comments

@Teja10
Copy link

Teja10 commented Dec 17, 2023

Change renderer.cu to properly swap the Optix image with an OpenGL framebuffer, and modify render_test.py to use OpenGL for rendering. You will need to figure out how to load GL functions on the C++ side.

@crozhon
Copy link
Collaborator

crozhon commented Dec 18, 2023

See branch sdl for a rough outline.

I didn't use interop, just copied the buffer back to CPU, then used glBufferData to move it back to GPU.

@crozhon crozhon assigned Teja10 and unassigned crozhon Dec 18, 2023
@crozhon
Copy link
Collaborator

crozhon commented Dec 18, 2023

I edited it again to do interop now - was pretty simple. Not sure what happens to PyTorch image I create each time though. Maybe that's the memory leak?

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

When branches are created from issues, their pull requests are automatically linked.

2 participants