mirror of
https://github.com/FlashML-org/FreeToken.git
synced 2026-11-25 12:42:56 +08:00
* fix(kernel): correct jit matcher options and pdl arch guards - with_dtype<Ts...>(sym) and with_device<Codes...>(sym) applied no options, so their dtype and device checks accepted anything - index and store list kDLROCM, which the ignored check let through - emit griddepcontrol only for !FREETOKEN_USE_ROCM && __CUDA_ARCH__ >= 900; it failed ptxas below sm_90 and does not exist on HIP - declare the launch attribute cache only on CUDA - use kWarpThreads for the index and store launch geometry Co-authored-by: zihaomu <zihaomu@outlook.com> * fix(kernel): treat zero as a matched size in tensor matcher - a zero dimension counted as unset, so empty inputs failed with "Size value is not set" and a zero-row tensor did not catch a mismatched one * fix(kernel): return early on empty index and store batches - an empty batch launched a zero-sized grid, which CUDA and HIP reject; the leftover error then failed the next GPU call Co-authored-by: zihaomu <zihaomu@outlook.com> --------- Co-authored-by: zihaomu <zihaomu@outlook.com>