-
-
Notifications
You must be signed in to change notification settings - Fork 509
ComfyUI: Updated gfx110X Windows ROCm nightly index. Added Win-ROCm EnVars #1524
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
Merged
+4
−2
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -382,7 +382,7 @@ await StandardPipInstallProcessAsync( | |
| var indexUrl = gfxArch switch | ||
| { | ||
| "gfx1151" => "https://rocm.nightlies.amd.com/v2/gfx1151", | ||
| _ when gfxArch.StartsWith("gfx110") => "https://rocm.nightlies.amd.com/v2/gfx110X-dgpu", | ||
| _ when gfxArch.StartsWith("gfx110") => "https://rocm.nightlies.amd.com/v2/gfx110X-all", | ||
| _ when gfxArch.StartsWith("gfx120") => "https://rocm.nightlies.amd.com/v2/gfx120X-all", | ||
| _ => throw new ArgumentOutOfRangeException( | ||
| nameof(gfxArch), | ||
|
|
@@ -870,6 +870,8 @@ private ImmutableDictionary<string, string> GetEnvVars(ImmutableDictionary<strin | |
| // set some experimental speed improving env vars for Windows ROCm | ||
| return env.SetItem("PYTORCH_TUNABLEOP_ENABLED", "1") | ||
| .SetItem("MIOPEN_FIND_MODE", "2") | ||
| .SetItem("TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL", "1"); | ||
| .SetItem("TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL", "1") | ||
| .SetItem("PYTORCH_ALLOC_CONF", "max_split_size_mb:6144,garbage_collection_threshold:0.8") // greatly helps prevent GPU OOM and instability/driver timeouts/OS hard locks and decreases dependency on Tiled VAE at standard res's | ||
| .SetItem("COMFYUI_USE_MIOPEN", "1"); // re-enables "cudnn" in ComfyUI as it's needed for MiOpen to function properly | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment is quite long and makes the line exceed typical length recommendations. For better readability, it's good practice to place comments on their own line(s) above the code they refer to, especially when they are descriptive. // Re-enables "cudnn" in ComfyUI as it's needed for MIOpen to function properly.
.SetItem("COMFYUI_USE_MIOPEN", "1"); |
||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line contains magic numbers (
6144,0.8) and a very long comment, which can impact readability and maintainability.I recommend extracting the numeric values into named constants to make their purpose explicit and easier to modify in the future. For example:
Additionally, the comment should be wrapped to fit within standard line length limits. I've provided a suggestion for reformatting the comment. Please consider applying the constants as well.