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 0ae2dc17dc [Fix][Metal] Fix type for device array in Metal API (#18283)
0ae2dc17dc is described below
commit 0ae2dc17dce8eacb5938e371d5bbb83d92de87f3
Author: Ruihang Lai <[email protected]>
AuthorDate: Mon Sep 8 12:02:59 2025 -0400
[Fix][Metal] Fix type for device array in Metal API (#18283)
This PR fixes a typo in the previous ffi namespace cleanup.
---
src/runtime/metal/metal_device_api.mm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/runtime/metal/metal_device_api.mm
b/src/runtime/metal/metal_device_api.mm
index c8a155ce38..9b60ea7710 100644
--- a/src/runtime/metal/metal_device_api.mm
+++ b/src/runtime/metal/metal_device_api.mm
@@ -164,7 +164,7 @@ MetalWorkspace::MetalWorkspace() {
id<MTLDevice> d = MTLCreateSystemDefaultDevice();
devices.push_back(d);
#else
- NSffi::Array<id<MTLDevice> >* devs = MTLCopyAllDevices();
+ NSArray<id<MTLDevice> >* devs = MTLCopyAllDevices();
for (size_t i = 0; i < devs.count; ++i) {
id<MTLDevice> d = [devs objectAtIndex:i];
devices.push_back(d);