AI agent ports 250k-line weather sim to GPU with 5.1x speedup

Share
AI agent ports 250k-line weather sim to GPU with 5.1x speedup

A new arXiv paper shows an AI agent modernizing one of the hardest kinds of legacy code — a 250,000-line Fortran weather model — and the validation-first workflow that kept the port trustworthy.

Researchers used an AI agent to port CReSS, a legacy Fortran weather simulation code with more than 250,000 lines, to run on GPUs — and the ported version ran a real typhoon simulation 5.1x faster while staying numerically faithful to the original.

The workflow, described in a paper submitted to the AgenticAI4HPC 2026 workshop, treats code generation as the easy part and proof as the hard part. The agent pulled the parallel regions out of the old OpenMP code, built benchmark kernels from physically meaningful simulation states, and applied OpenACC offloading so the heavy loops run on GPU. Then came the part that makes this worth reading: every kernel was validated element-by-element against reference data dumped from the original CPU runs, plus full application-level checks on top.

Of the 162 target kernels, the agent produced numerically validated GPU implementations for all of them. It also caught genuine bugs in the process — numerical discrepancies in five kernels caused by floating-point and intrinsic-function differences, including threshold-sensitive branch divergence and cancellation effects that the team fed back to the model's developers. That is the payoff of the validation-centric design: the agent did not just make the code faster, it found problems the existing test regime had missed.

The paper's broader argument is that legacy scientific software is not merely old code — it is a credibility asset, refined against observations and cited in published science for years. Porting it to new hardware is a correctness problem before it is a performance problem, which is why the authors say practical AI-assisted porting demands workflow design, not just code generation: agents need session-spanning context, runtime-state reconstruction, and the ability to recover cheaply when small static-analysis omissions derail a port. We've seen LLMs get good at writing fresh code; this is the harder second act — taking code that already works and proving an AI can move it to new hardware without breaking the science.

What to watch: whether this dump-and-validate pattern becomes the default scaffold for agentic HPC modernization, and whether the 5.1x speedup holds up outside the typhoon test case.

If your team has legacy code waiting for an AI port, does this validation-first approach match what you'd need? Tell us in the comments.

Read more

Akhetonics says its all-optical CPU reaches a customer in 2026

Akhetonics says its all-optical CPU reaches a customer in 2026

Light-based computing keeps promising more than it delivers — but one Munich startup has just put a date on its bet, and the interview laying it out is doing the rounds on Hacker News this week. Akhetonics says it will deploy its first commercial machine with a major customer by the end of 2026, with several more planned for 2027. The company, founded by Michael Kissner and Leonardo Del Bino, is building a computer where data enters as light, is switched as light, and circulates through memory

The Week in AI — October 5–11, 2026

The Week in AI — October 5–11, 2026

Every big claim this week turned out to rest on fine print more interesting than the headline: revenue only the company reporting it can define, safety tests sandboxed while the product keeps the web, and a Pentagon phase-out nobody would confirm until reporters kept asking. The week's top 5 1. OpenAI's revenue was $20 billion below the numbers everyone quoted — and the gap was definitional. The Financial Times reported Thursday that OpenAI's annualized revenue runs roughly $20 billion unde

Drone strike shuts a third Yandex data center, taking YandexGPT offline

Drone strike shuts a third Yandex data center, taking YandexGPT offline

Russia's largest tech company is learning what the AI era's infrastructure war looks like from the receiving end — three data centers in four days, and with them much of the cloud layer Russian businesses run on. A Ukrainian drone strike knocked out Yandex's data center in Vladimir early Sunday morning, the third of the company's facilities hit since October 8. The site — reported at roughly 50 MW and designed for about 2,880 server racks — stopped operating completely after the attack, Yandex

Agent teams cost up to 5x more, barely score higher

Agent teams cost up to 5x more, barely score higher

The multi-agent hype train hit a benchmark this weekend — and the grid and the trucking regulators had quiet weeks of their own. Vals AI put agent teams head-to-head with single agents on its Vibe Code Bench, and the teams cost between 1.8 and 5.1 times more for almost no extra quality. The evals company ran GPT-6 Sol and Claude Opus 5.5 solo and in teams across 50 apps at two reasoning efforts; out of four comparisons, only one was statistically significant — Sol at medium effort, where the t