Show HN: A CUDA-Generating AI Agent

Hacker News - AI
Jul 9, 2025 23:02
atallahw
1 views
hackernewsaidiscussion

Summary

MakoGenerate is an AI agent that automatically converts PyTorch code into optimized CUDA kernels, iteratively improving performance and correcting errors based on feedback from compilation and validation. Users can customize the process with prompts, documentation, and specific optimization goals, making it a flexible tool for accelerating deep learning workflows. This approach has significant implications for automating and streamlining the development of high-performance AI models on GPU hardware.

MakoGenerate is an AI agent that takes any PyTorch code as input, and writes CUDA kernels for it. You can choose a sample problem or enter in your own PyTorch. It generates CUDA, compiles and validates the results, then uses all of this as feedback into the next generation attempt. If the generated kernel didn’t work, it tries to fix it. If it did work, it tries to make it faster. You can configure the agent with a model/hardware/compute budget. The optional custom prompt section gives you the opportunity to add more context to the agent. You can include specific documentation, tutorials, or examples. You can also identify specific optimization techniques that you would like to see applied. Prompts can be as short as one line, or even multiple pages long. Let me know what you think. Comments URL: https://news.ycombinator.com/item?id=44515598 Points: 2 # Comments: 0

Related Articles

I've been coding with AI for two years. Here is what I've learned

Hacker News - AIJul 17

In this article, the author reflects on two years of coding with AI tools, noting significant productivity gains and the ability to tackle more complex projects. However, they emphasize that human oversight remains crucial, as AI-generated code can introduce subtle errors. The piece highlights the growing importance of AI as a coding assistant, while underscoring the need for developers to maintain strong foundational skills.

7 AI features coming to iOS 26 that I can't wait to use (and how you can try them)

ZDNet - Artificial IntelligenceJul 17

Apple is introducing seven new AI-powered features in iOS 26, including the standout "Hold Assist," which promises to save users significant time. These enhancements reflect Apple's commitment to integrating advanced AI into everyday tasks, signaling increased competition and innovation in the mobile AI space.

Cheating? Or the acumen of modern programming? FOSS, "AI", and human conscience

Hacker News - AIJul 17

The article explores the ethical debate around using AI tools and open-source software (FOSS) in programming, questioning whether leveraging such technologies constitutes cheating or simply reflects modern programming practices. It highlights the evolving role of human conscience in determining the boundaries of acceptable AI-assisted work. The discussion underscores the need for clearer guidelines as AI becomes increasingly integrated into software development.