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? Write to us via our contact page.

Get SiliconNoon in your inbox

One email a day with the AI stories that matter — what happened, the numbers, and why it matters. No spam, unsubscribe in one click.

Read more

Fudan's Whitzard agent ranks No. 2 on CyberGym exploit benchmark

Fudan's Whitzard agent ranks No. 2 on CyberGym exploit benchmark

A Chinese university team just proved that an open-weight model plus strong agent scaffolding can out-hack the labs that built the models. Fudan University's Whitzard agent jumped to No. 2 globally — and No. 1 among universities — on CyberGym, the AI security benchmark, cracking 91.2% of the real-world vulnerabilities it faced. The new leaderboard, released this week, puts the team led by Professor Yang Min's lab in the world's first tier of AI attack-and-defense research.

Study: frontier agents fail at open-ended AI research

Study: frontier agents fail at open-ended AI research

The "AI does AI research" narrative took a hit from an independent evaluation today, Google quietly made visible AI watermarks optional, and the company pushed encrypted inference a step closer to production. A busy morning for the frontier — and for the people trying to verify its claims. A new "shadow evaluation" from Princeton and the UK AI Security Institute found that frontier agents can do the engineering of AI research but not the research itself — both papers the agent produced were…

Upstage ships Solar Pro 4, an agentic model with 512K context

Upstage ships Solar Pro 4, an agentic model with 512K context

Korean AI lab Upstage rounded out its 2026 lineup this week with Solar Pro 4, a closed-API flagship aimed squarely at document-heavy agent work, roughly a week after the open-weights Solar Open 2. It is the company's clearest bet yet that the next AI battleground is finishing office jobs, not passing chat tests. Upstage released Solar Pro 4, a proprietary agentic model for multi-document, multi-tool workloads, with a 512K-token context window and up to 128K output tokens.

DeepMind alumni's Inherent says its Faraday agent beats GPT-5.5 at reproducing research

DeepMind alumni's Inherent says its Faraday agent beats GPT-5.5 at reproducing research

A London lab founded by Google DeepMind alumni says its new agent, Faraday, outperformed Claude Opus 4.8 and GPT-5.5 at independently reproducing the findings of published scientific papers — and it did it on a 27B-parameter Qwen 3.6 model, a fraction of the frontier systems' size. Inherent emerged from stealth just weeks ago with a $50 million seed round, and this benchmark claim is its first real proof point. The company is upfront that the task was narrow: replication, not discovery.

Terminal-Bench-Science: the best AI agents solve only 30% of real research tasks

Terminal-Bench-Science: the best AI agents solve only 30% of real research tasks

A new benchmark built from researchers' own lab work is drawing the first honest line between AI agents that can talk about science and agents that can actually do it. The answer is humbling: the best system in the world clears fewer than a third of the tasks. Terminal-Bench-Science 0.1 launches today with 70 tasks drawn from real scientific workflows across the life, physical, Earth, mathematical, and engineering sciences.