Commit ed349df
SYCL: fix rms_norm_mul_add for tensor dim not a multiple of sg_size (ggml-org#15592)
The original implementation unconditionally returned true for this operation, leading to a failure when the tensor's first dimension (ne[0]) was not a multiple of WARP_SIZE. This caused an GGML_ASSERT(ncols % WARP_SIZE == 0) failure in ggml-sycl/norm.cpp.
This change updates the ggml_backend_sycl_device_supports_op check to correctly return true for GGML_OP_RMS_NORM only when the first dimension of the tensor is a multiple of WARP_SIZE, ensuring the operation can be performed without error.1 parent 524254e commit ed349df
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4364 | 4364 | | |
4365 | 4365 | | |
4366 | 4366 | | |
4367 | | - | |
4368 | 4367 | | |
4369 | 4368 | | |
4370 | 4369 | | |
4371 | 4370 | | |
| 4371 | + | |
| 4372 | + | |
4372 | 4373 | | |
4373 | 4374 | | |
4374 | 4375 | | |
| |||
0 commit comments