mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#216
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-kitchen/pull/202
Author: @0xDELUXA
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @comfyanonymous
Base:
main← Head:amd/hip-seedvr2-views📝 Commits (1)
0030df9HIP port of #192: zero_pad and strided NDHWC views for conv3d and GroupNorm📊 Changes
5 files changed (+398 additions, -76 deletions)
View changed files
📝
comfy_kitchen/backends/hip/__init__.py(+99 -28)📝
comfy_kitchen/backends/hip/dlpack_bindings.cpp(+18 -10)📝
comfy_kitchen/backends/hip/ops/conv3d_fp16.hip(+20 -13)📝
comfy_kitchen/backends/hip/ops/group_norm_pad3d.hip(+44 -22)📝
tests/test_hip_wmma.py(+217 -3)📄 Description
Performance port of #192. Instead of routing
zero_padto eager and implementing_outas compute-then-copy, this moves all three changes into the HIP kernels.ops/group_norm_pad3d.hip: addskZeroPad, writing the zero border in the fused kernel.ops/conv3d_fp16.hip: reads NDHWC inputs directly via strides, supporting packed tensors and single-batch frame windows like CUDA. Otheroutlayouts use a temporary + copy, avoiding the much slower torch fallback on ROCm.outfollows CUDA's_writes_packed_ndhwcrule.RDNA4 fp16 benchmarks:
zero_pad, 128ch 5x256x256: 3.54 ms -> 1.04 msCompile-verified across all 17 manifest targets as one fat binary, with ISA checks on gfx1030/gfx1100/gfx1151/gfx1200/gfx1201. No scratch usage, conv VGPR counts are unchanged or lower, and the eight new GroupNorm instantiations match across families. Runtime-verified on gfx1200 only.
Full suite: 2149 passing vs. 2133 before; 102 failures unchanged, all pre-existing CUDA-extension-absent cases.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.