mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #206] [HIP] Integrate iGPU Optimizations (gfx1035 + gfx1103) #225
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#225
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/206
Author: @LuXuxue
Created: 9/26/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (10+)
7c6d845调整配置210cdb9提升gemm性能3ec28e2融合 RMSNorm+RoPE 重写d1eac4bhip: int8 attention to the SageAttention gfx110x schedule847152bhip: fix v buffer overrun in the short-key direct attention pathc83392ahip: gate the 780M tuning behind the gfx1103 architecture0998ff6优化gfx1103性能b3ccecdhip: gate all gfx1103 iGPU tuning behind architecture selectioneb66bb2Merge remote-tracking branch 'upstream/main'6a712c2hip: route partial-key-tile D128 attention to upstream int8_attn📊 Changes
62 files changed (+14478 additions, -573 deletions)
View changed files
📝
comfy_kitchen/__init__.py(+55 -1)📝
comfy_kitchen/backends/eager/conv3d.py(+16 -3)📝
comfy_kitchen/backends/eager/quantization.py(+62 -0)📝
comfy_kitchen/backends/hip/CMakeLists.txt(+47 -0)📝
comfy_kitchen/backends/hip/__init__.py(+1632 -105)📝
comfy_kitchen/backends/hip/architecture_config.h.in(+6 -0)📝
comfy_kitchen/backends/hip/dlpack_bindings.cpp(+470 -36)➕
comfy_kitchen/backends/hip/dlpack_bindings_gfx103x.cpp(+436 -0)📝
comfy_kitchen/backends/hip/epilogue.h(+84 -13)➕
comfy_kitchen/backends/hip/gemm_gfx10.h(+751 -0)📝
comfy_kitchen/backends/hip/gemm_wmma.h(+417 -19)📝
comfy_kitchen/backends/hip/hadamard.h(+598 -80)📝
comfy_kitchen/backends/hip/launchers.h(+176 -0)📝
comfy_kitchen/backends/hip/mma.h(+119 -31)➕
comfy_kitchen/backends/hip/mma_gfx103x.h(+674 -0)➕
comfy_kitchen/backends/hip/nvfp4_gfx10.h(+840 -0)➕
comfy_kitchen/backends/hip/nvfp4_utils.h(+391 -0)📝
comfy_kitchen/backends/hip/ops/conv3d_fp16.hip(+59 -6)📝
comfy_kitchen/backends/hip/ops/convrot_w4a4.hip(+83 -4)📝
comfy_kitchen/backends/hip/ops/flash_decode.hip(+4 -4)...and 42 more files
📄 Description
This PR integrates all iGPU-specific optimizations from the
comfy-kitchen-igpufork into the mainline. The fork adds support for AMD Radeon integrated GPUs (RDNA2 gfx103x and RDNA3 gfx1103) with performance competitive to discrete GPUs, while preserving full upstream compatibility for discrete AMD and NVIDIA hardware.1. New Hardware Support
1.1 RDNA2 (gfx103x) — VALU Extension
No matrix cores on RDNA2. This adds a completely separate extension using VALU
v_dot4_i32_i8andv_dot2_f32_f16instructions.1.2 RDNA3 iGPU (gfx1103) — WMMA Tuning
The Radeon 780M (6 WGPs, 128 CU) gets architecture-specific tuning behind
COMFY_MMA_GFX1103:2. Performance Results
Sageatten used below is a iGPU optimized fork, used to show how much gemm get improved.
gfx1103 (Radeon 780M, RDNA3 iGPU, 64GB RAM, Windows 11)
gfx1035 (Radeon 680M, RDNA2 iGPU, 32GB RAM, Windows 11)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.