HNHacker News
TopNewBestAskShowJobs

bertaye

14 karma · joined June 24, 2023

submissionscomments
bertaye··on Show HN: Agentic CUDA Kernel Optimizer
It cant if you be cautious about it because the inputs can set manually and outputs are generated through the cuda harness by executing the reference kernel, again can be provided externally.

Comparison is simply byte by byte equalness check of reference kernel outputs with candidate (optimized) outputs.

Why I added ai generated inputs then? I was just being lazy and this was more of a langgraph playground for me:)

bertaye··on Show HN: Agentic CUDA Kernel Optimizer
Hello, indeed you can just use that.

The basic idea here is just automating and limiting the steps that AI can take. These are described as ‘nodes’ and their actions are limited/more descriptive from developer perspective.

The langgraph simply allows you to set some fences around the AI agent for a goal, instead of raw terminal flow. Is it better? Arguable.

bertaye··on Show HN: Agentic CUDA Kernel Optimizer
honestly I know it exists but I never used it so can't compare
bertaye··on Show HN: Agentic CUDA Kernel Optimizer
That is the funny part actually; we can either provide a reference kernel + input cases for correctness check. In this case at first it will use test harness to run reference kernel with reference inputs ad save the outputs as ground truth. Or we can let AI to create a very basic reference implementation and input cases :D for my own experiments I used second one.