Repository navigation
CUDA: add CONV_3D operator support - #17255
YaelGitAccount wants to merge 3 commits into
Conversation
|
Unfortunately, the reason no backends support |
|
There also exists #16948 . You can use the conv3d test program from that pr to compare the performance. |
|
Thanks for the review and the clarification! If it makes sense for the project, I can follow up with a small PR that adds • keep the existing IM2COL_3D + MUL_MAT lowering as the default path If the benchmarks show clear benefits for Conv3D on supported backends, then This keeps behavior stable while opening the door for backend-level Let me know if this direction sounds reasonable — happy to iterate. |
Summary
Adds CUDA support for
GGML_OP_CONV_3D, enabling full 3D convolution on NVIDIA GPUs with correct multi-dimensional indexing.The implementation matches the CPU semantics exactly, including fused channel dimensions and nb[] byte-stride layout.
Changes
conv3d.cuandconv3d.cuhwith CUDA kernel and helpersggml-cuda.cuggml-cuda.cudocs/ops.mdanddocs/ops/CUDA.csvto include CONV_3DImplementation
b * IC + icoc * IC + icb * OC + ocTesting
CONV_3Dbackend tests pass for CUDA (F32/F16 kernels, all shapes)Compatibility