Skip to content

Commit a6590c7

Browse files
mivertowskiclaude
andcommitted
fix(cli): fix type mismatch in codegen block_size parameter
with_block_size expects u32, not usize. Removes unnecessary cast. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 227122c commit a6590c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/ringkernel-cli/src/commands/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ fn generate_cuda_kernel(kernel: &KernelInfo) -> CliResult<String> {
225225
use ringkernel_cuda_codegen::{transpile_ring_kernel, RingKernelConfig};
226226

227227
let config =
228-
RingKernelConfig::new(&kernel.name).with_block_size(kernel.block_size as usize);
228+
RingKernelConfig::new(&kernel.name).with_block_size(kernel.block_size);
229229

230230
match transpile_ring_kernel(&kernel.function, &config) {
231231
Ok(code) => return Ok(code),

0 commit comments

Comments
 (0)