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

[gui] Allowing recreating GGUI windows after ti.reset(). #3389

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

AmesingFlank
Copy link
Collaborator

I have been trying to write tests for GGUI, and one problem I encountered was that I couldn't run GGUI multiple times separated by ti.reset() calls. There were two reasons for this:

  1. ti.reset() doesn't release the resources for the GGUI window. This PR adds an explicit destory() method that works around this. (i.e. after each test, I will call destroy() manually)

  2. The vulkan_cuda interop function did not consider the fact that the VulkanDevice and CudaDevice could change. This is fixed in this PR.

@netlify
Copy link

netlify bot commented Nov 5, 2021

✔️ Deploy Preview for jovial-fermat-aa59dc canceled.

🔨 Explore the source changes: d293158

🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/618488520a564d0007290bf3

@bobcao3 bobcao3 changed the title [gui] Allowing creating multiple GGUI windows separated by ti.reset(). [gui] Allowing recreating GGUI windows after ti.reset(). Nov 5, 2021
Copy link
Collaborator

@bobcao3 bobcao3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The title seemed a bit confusing (I thought it mean multiple GGUI windows at the same time), so I changed it

@AmesingFlank AmesingFlank merged commit f5c46fc into taichi-dev:master Nov 5, 2021
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

Successfully merging this pull request may close these issues.

2 participants