Skip to content

Conversation

@MasterJH5574
Copy link
Contributor

This PR fixes a bug in MetalModuleNode::GetFunction.

The lambda passed to autoreleasepool is supposed to return nothing. Prior to this PR, it returns a function at an early exit branch, which may cause the error of EXC_BREAKPOINT in Metal.

This PR fixes a bug in `MetalModuleNode::GetFunction`.

The lambda passed to autoreleasepool is supposed to return
nothing. Prior to this PR, it returns a function at an early
exit branch, which may cause the error of `EXC_BREAKPOINT`
in Metal.
@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2025-06-02-metal-runtime-fix branch from 778b0bb to b49a7e9 Compare June 3, 2025 00:26
@tqchen
Copy link
Member

tqchen commented Jun 3, 2025

@tvm-bot rerun

@tqchen tqchen merged commit 44eda85 into apache:main Jun 3, 2025
13 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
This PR fixes a bug in `MetalModuleNode::GetFunction`.

The lambda passed to autoreleasepool is supposed to return
nothing. Prior to this PR, it returns a function at an early
exit branch, which may cause the error of `EXC_BREAKPOINT`
in Metal.
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
This PR fixes a bug in `MetalModuleNode::GetFunction`.

The lambda passed to autoreleasepool is supposed to return
nothing. Prior to this PR, it returns a function at an early
exit branch, which may cause the error of `EXC_BREAKPOINT`
in Metal.
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
This PR fixes a bug in `MetalModuleNode::GetFunction`.

The lambda passed to autoreleasepool is supposed to return
nothing. Prior to this PR, it returns a function at an early
exit branch, which may cause the error of `EXC_BREAKPOINT`
in Metal.
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
This PR fixes a bug in `MetalModuleNode::GetFunction`.

The lambda passed to autoreleasepool is supposed to return
nothing. Prior to this PR, it returns a function at an early
exit branch, which may cause the error of `EXC_BREAKPOINT`
in Metal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants