This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 327315c4b3 [REFACTOR][METAL] Update CHECK_LE to TVM_FFI_ICHECK_LE in
Metal runtime (#18819)
327315c4b3 is described below
commit 327315c4b3d0e0e71f8be27586efde87a6a2661f
Author: Masahiro Hiramori <[email protected]>
AuthorDate: Thu Feb 26 08:45:30 2026 +0900
[REFACTOR][METAL] Update CHECK_LE to TVM_FFI_ICHECK_LE in Metal runtime
(#18819)
As per title.
---
src/runtime/metal/metal_module.mm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/runtime/metal/metal_module.mm
b/src/runtime/metal/metal_module.mm
index deb863c69b..0066b651fc 100644
--- a/src/runtime/metal/metal_module.mm
+++ b/src/runtime/metal/metal_module.mm
@@ -212,7 +212,7 @@ class MetalWrappedFunc {
ThreadWorkLoad wl = launch_param_config_.Extract(args);
int blockSize = wl.block_dim(0) * wl.block_dim(1) * wl.block_dim(2);
auto maxTotalThreadsPerThreadgroup =
scache_[device_id].maxTotalThreadsPerThreadgroup;
- CHECK_LE(blockSize, maxTotalThreadsPerThreadgroup);
+ TVM_FFI_ICHECK_LE(blockSize, maxTotalThreadsPerThreadgroup);
// attach error message directly in this functio
id<MTLCommandBuffer> cb =
stream->GetCommandBuffer(/*label=*/"TVMKernel:" + func_name_,
/*attach_error_callback=*/false);