Skip to content

[Misc] Allow disabling GPU graph via QD_GPU_GRAPH=0 env var#439

Merged
hughperkins merged 3 commits intomainfrom
hp/gpu-graph-env-var
Apr 2, 2026
Merged

[Misc] Allow disabling GPU graph via QD_GPU_GRAPH=0 env var#439
hughperkins merged 3 commits intomainfrom
hp/gpu-graph-env-var

Conversation

@hughperkins
Copy link
Copy Markdown
Collaborator

Issue: #

Brief Summary

copilot:summary

Walkthrough

copilot:walkthrough

@hughperkins hughperkins force-pushed the hp/gpu-graph-env-var branch 3 times, most recently from c1aec93 to 8d1314b Compare March 31, 2026 03:14
Override at launch time (not compilation time) so graph_do_while
still compiles correctly but the C++ runtime uses its host-side
fallback loop instead of CUDA graph execution.
@hughperkins hughperkins force-pushed the hp/gpu-graph-env-var branch from 8d1314b to 4f28cd6 Compare March 31, 2026 03:19
@hughperkins hughperkins marked this pull request as draft March 31, 2026 03:19
@hughperkins
Copy link
Copy Markdown
Collaborator Author

I have read every line added in this PR, and reviewed the lines. I take responsibilty for the lines added and removed in this PR, and won't blame any issues on Opus.

@hughperkins hughperkins marked this pull request as ready for review March 31, 2026 03:21
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the use case for this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

otherwise when run pytorch profiling you get traces like:

Screenshot 2026-04-01 at 17 20 11

Full of white space: thats where gpu graph is running.

Pretty useless for optimization.

Need to turn off gpu graph when profiling.

@hughperkins
Copy link
Copy Markdown
Collaborator Author

Thanks!

@hughperkins hughperkins enabled auto-merge (squash) April 1, 2026 23:59
@hughperkins hughperkins merged commit f2fc6db into main Apr 2, 2026
47 checks passed
@hughperkins hughperkins deleted the hp/gpu-graph-env-var branch April 2, 2026 00:50
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