Comment by asamadx

2 days ago

respect for shipping something this technical solo, this is the kind of project that usually needs a team to even validate correctness. how are you handling regression testing across kernel variants, feels like the hardest part of an agentic optimizer isn't finding a faster kernel, it's proving the faster one didn't quietly break something

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.

  • How are you checking that the AI is not just gaming your correctness tests? It's very easy to write incorrect synchronization for example.

    • 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:)

      1 reply →