Skip to content

Require a target architecture in codegen - #353

Merged
maleadt merged 1 commit into
tb/remove-slot-codegenfrom
tb/require-sm-arch
Nov 24, 2026
Merged

maleadt merged 1 commit into
tb/remove-slot-codegenfrom
tb/require-sm-arch

Conversation

@maleadt

@maleadt maleadt commented Nov 24, 2026

Copy link
Copy Markdown
Member

Since #311, tile_job always resolves a concrete sm_arch, but codegen still accepted sm_arch=nothing. That mode is unreachable, and would silently skip @compiler_options hints and the architecture checks for CTA clusters and BFloat16 atomics.

This makes sm_arch::VersionNumber required in CGCtx, emit_kernel!, resolve_hint and the hint encoders, and drops emit_kernel!'s unused is_entry keyword. The bytecode-level add_function! stays target-independent.

Since #311, tile_job always resolves a concrete sm_arch, but codegen still
carried an arch-less mode: CGCtx, emit_kernel!, resolve_hint and the
entry/load-store hint encoders accepted nothing, skipping `@compiler_options`
meta hints, the empty optimization_hints dict and some architecture checks
in that case. Nothing exercised it anymore, so make sm_arch a required
VersionNumber in those places and drop emit_kernel!'s unused is_entry
keyword. The raw bytecode API (add_function! with optional entry hints)
stays target-independent.
@maleadt
maleadt changed the base branch from main to tb/remove-slot-codegen November 24, 2026 09:57
@maleadt
maleadt added this pull request to stack #357 November 24, 2026 09:58
@maleadt
maleadt merged commit 5bb9240 into main Nov 24, 2026
7 checks passed
@maleadt
maleadt deleted the tb/require-sm-arch branch November 24, 2026 13:05
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.

1 participant