Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Sep 14, 2025

This PR updates the default version to beta version. The version should change to normal once after we formally release

This PR updates the default version to beta version.
The version should change to normal once after we formally release
@cyx-6 cyx-6 merged commit ab5bc02 into apache:dev Sep 14, 2025
6 checks passed
@tqchen tqchen deleted the bump-beta branch October 3, 2025 00:36
tqchen added a commit to tqchen/tvm-ffi that referenced this pull request Oct 13, 2025
This PR introduces a new C API TVMFFIErrorSetRaisedFromCStrParts.

Background: when DSL compilers report errors, sometimes there are common
parts that appears multiple times, such as function signature.

For example, the following are possible error messages from a DSL.

- Argument apache#1 mismatch in `matmul(x: Tensor, y: Tensor)`, dtype mismatch
- Argument apache#2 mismatch in `matmul(x: Tensor, y: Tensor)`, shape[0] mismatch

While we can store each message as const string and pass them
to `TVMFFIErrorSetRaisedFromCStr`. There are quite a bit of duplication here.

This API allows us to store the error messages in parts, so parts
like "mismatch in `matmul(x: Tensor, y: Tensor)`,"  get reused across
multiple error messages. Because DSLs usually have minimal runtime, having
a minimal helper C API would simplify the possible overhead of compiler
construction side.
tqchen added a commit to tqchen/tvm-ffi that referenced this pull request Oct 13, 2025
This PR introduces a new C API TVMFFIErrorSetRaisedFromCStrParts.

Background: when DSL compilers report errors, sometimes there are common
parts that appears multiple times, such as function signature.

For example, the following are possible error messages from a DSL.

- Argument apache#1 mismatch in `matmul(x: Tensor, y: Tensor)`, dtype mismatch
- Argument apache#2 mismatch in `matmul(x: Tensor, y: Tensor)`, shape[0] mismatch

While we can store each message as const string and pass them
to `TVMFFIErrorSetRaisedFromCStr`. There are quite a bit of duplication here.

This API allows us to store the error messages in parts, so parts
like "mismatch in `matmul(x: Tensor, y: Tensor)`,"  get reused across
multiple error messages. Because DSLs usually have minimal runtime, having
a minimal helper C API would simplify the possible overhead of compiler
construction side.
tqchen added a commit to tqchen/tvm-ffi that referenced this pull request Oct 13, 2025
This PR introduces a new C API TVMFFIErrorSetRaisedFromCStrParts.

Background: when DSL compilers report errors, sometimes there are common
parts that appears multiple times, such as function signature.

For example, the following are possible error messages from a DSL.

- Argument apache#1 mismatch in `matmul(x: Tensor, y: Tensor)`, dtype mismatch
- Argument apache#2 mismatch in `matmul(x: Tensor, y: Tensor)`, shape[0] mismatch

While we can store each message as const string and pass them
to `TVMFFIErrorSetRaisedFromCStr`. There are quite a bit of duplication here.

This API allows us to store the error messages in parts, so parts
like "mismatch in `matmul(x: Tensor, y: Tensor)`,"  get reused across
multiple error messages. Because DSLs usually have minimal runtime, having
a minimal helper C API would simplify the possible overhead of compiler
construction side.
tqchen added a commit to tqchen/tvm-ffi that referenced this pull request Oct 13, 2025
This PR introduces a new C API TVMFFIErrorSetRaisedFromCStrParts.

Background: when DSL compilers report errors, sometimes there are common
parts that appears multiple times, such as function signature.

For example, the following are possible error messages from a DSL.

- Argument apache#1 mismatch in `matmul(x: Tensor, y: Tensor)`, dtype mismatch
- Argument apache#2 mismatch in `matmul(x: Tensor, y: Tensor)`, shape[0] mismatch

While we can store each message as const string and pass them
to `TVMFFIErrorSetRaisedFromCStr`. There are quite a bit of duplication here.

This API allows us to store the error messages in parts, so parts
like "mismatch in `matmul(x: Tensor, y: Tensor)`,"  get reused across
multiple error messages. Because DSLs usually have minimal runtime, having
a minimal helper C API would simplify the possible overhead of compiler
construction side.
tqchen added a commit to tqchen/tvm-ffi that referenced this pull request Oct 13, 2025
This PR introduces a new C API TVMFFIErrorSetRaisedFromCStrParts.

Background: when DSL compilers report errors, sometimes there are common
parts that appears multiple times, such as function signature.

For example, the following are possible error messages from a DSL.

- Argument apache#1 mismatch in `matmul(x: Tensor, y: Tensor)`, dtype mismatch
- Argument apache#2 mismatch in `matmul(x: Tensor, y: Tensor)`, shape[0] mismatch

While we can store each message as const string and pass them
to `TVMFFIErrorSetRaisedFromCStr`. There are quite a bit of duplication here.

This API allows us to store the error messages in parts, so parts
like "mismatch in `matmul(x: Tensor, y: Tensor)`,"  get reused across
multiple error messages. Because DSLs usually have minimal runtime, having
a minimal helper C API would simplify the possible overhead of compiler
construction side.
tqchen added a commit to tqchen/tvm-ffi that referenced this pull request Oct 13, 2025
This PR introduces a new C API TVMFFIErrorSetRaisedFromCStrParts.

Background: when DSL compilers report errors, sometimes there are common
parts that appears multiple times, such as function signature.

For example, the following are possible error messages from a DSL.

- Argument apache#1 mismatch in `matmul(x: Tensor, y: Tensor)`, dtype mismatch
- Argument apache#2 mismatch in `matmul(x: Tensor, y: Tensor)`, shape[0] mismatch

While we can store each message as const string and pass them
to `TVMFFIErrorSetRaisedFromCStr`. There are quite a bit of duplication here.

This API allows us to store the error messages in parts, so parts
like "mismatch in `matmul(x: Tensor, y: Tensor)`,"  get reused across
multiple error messages. Because DSLs usually have minimal runtime, having
a minimal helper C API would simplify the possible overhead of compiler
construction side.
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