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

Post IDMLDevice1::CompileGraph into other threads #13

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

mingmingtasd
Copy link

@mingmingtasd mingmingtasd commented Jun 21, 2023

To avoid blocking GPU main thread, based on #12, continue to post IDMLDevice1::CompileGraph to thread pool rather than run in GPU main thread. Verified by adding Sleep(/*millisecond=*/10000) that this can successfully resolve UI blocking issue. @fdwr @huningxin

@huningxin
Copy link

/cc @RafaelCintron

@fdwr fdwr merged commit 7829be6 into fdwr:dml_sd Jul 5, 2023
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.

3 participants