MarsTrace New

Find out why your GPU kernel is slow.

MarsTrace records when every part of a CUDA kernel runs, warp by warp, on an NVIDIA H200, B200 or B300 that we provide. Hand over the compiled kernel and a question. Get back a timeline that you and your coding agent can read, or have an agent optimize the kernel and return a patch.

  • No GPU of your own
  • The kernel as you compiled it
  • From your coding agent, the console or the command line

How it works

From a question to a fix, in under a minute.

An agent is asked to profile an attention kernel. MarsTrace probes the compiled kernel, runs it and records every warp. You mark the part that looks slow, and the agent finds the cause.

One session on a FlashAttention forward kernel, as an animation without sound. Pick a chapter to jump to it.

What a trace shows

Totals say a kernel is slow. A trace says why.

Most profilers describe a kernel as a whole. Inside it, thousands of warps load, compute and wait on each other at once. MarsTrace records when each part ran in each warp, so a stall has a place and a time.

  • Where the time goes. How long each region of the kernel takes, warp by warp and block by block.
  • Where the GPU waits. The pipeline bubbles: the gaps where a warp waits for a load, a barrier or another warp.
  • Who does what, and when. Warp roles side by side, such as copy warps and math warps, on one timeline.
A kernel trace open in a browser: rows of thread blocks, coloured by phase, with one region marked for an agent to read
A trace as a timeline: one row per thread block, one colour per phase of the kernel. A region marked here can be handed to an agent as it is.

Three modes

Find out why, or have it made faster.

Every job traces the kernel first. In the thinking modes an agent then changes your source one measured step at a time, and keeps a change only if it is measurably faster and still passes your check.

Minutes

Profile only

A timeline inside your kernel, per loop, phase and warp role, with an analysis of where the time goes.

  • Needs only the compiled kernel
  • Mode fast
About an hour

Thinking, light

The profile, then an optimized kernel: a patch against your source, and a report of what changed and how fast it runs.

  • Needs your source, and commands to build, run and check it
  • Mode thinking-light
Up to five hours

Thinking, heavy

The same, with a larger budget for deeper changes. It may stop early once it has ruled out every candidate change.

  • Needs your source, and commands to build, run and check it
  • Mode thinking-heavy

Get started

Three steps to your first trace.

Set up once, in a few minutes. Your coding agent can do the rest.

Set up once

Create an account, add credit and a MarsTrace key, then install the marstrace client. No GPU needed.

Ask for a trace

Tell your coding agent what you want to know, in plain words. Or put the cubin and a short job file in a folder and run marstrace submit, or fill in the console's job form.

Read the timeline

Open the trace in the console, mark the slow region, and hand it to your agent to explain and fix. A thinking job brings its own patch and report.

Why it can be trusted

A trace of the kernel you ship, not a different one.

MarsTrace is the tracer in MarsRover, run for you on our GPUs. It adds its probes after compilation, so the compiler never sees them and the kernel stays the one you built.

Existing tracers
Source or IR probes added here
Compiler builds the probes in
Binary a changed kernel
MarsTrace
Source or IR untouched
Compiler optimizes as usual
Binary probes added here

A trace is a measurement. It is useful only if the kernel being measured stays the same. Probes added before compilation change how the compiler schedules the code, and a stage can look slow only because the probe made it slow.

Original instructions still in the traced kernel

MarsTrace
94–98%
Existing tracers
8–48%

Time added to the kernel

MarsTrace
0.9–2.8%
Existing tracers
3.8–75.6%

Ranges across the kernels tested, on NVIDIA H100 and B300 and AMD MI300X. Source: MarsRover, September 2026.

What it costs

Pay for the agent's work. See the most it can cost first.

A job is charged the tokens its agent used, from your MarsCompute balance. The GPU is not charged separately.

Charged by tokens

The input, output and cache tokens the agent used, at the rates marstrace hardware shows.

An estimate first

marstrace estimate shows the typical cost and a hard cap, the most the job can cost. The client asks before it submits.

A balance to start

A job starts when your balance reaches the minimum marstrace credit shows. That is held while it runs, not the price.

Nothing usable, no charge

A job that delivers nothing usable is free. Otherwise every attempt counts, failed ones included; if a failure on our side caused a charge, we correct it with a credit.

MarsTrace charges for the agent’s tokens, per million: $24 input, $1.20 cache reads, $30 for 5-minute and $48 for 1-hour cache writes, and $120 output. GPU time has no separate charge; marstrace hardware shows the rates in force.

Questions

Before your first trace.

Do I need a GPU?

No. Each job runs on an H200, B200 or B300, with CUDA 13.0, that MarsTrace starts for it and removes when the job ends. You need Python 3.11 and the compiled kernel; nvcc -cubin builds one without a GPU.

Do I need the source code?

Not for a trace: MarsTrace traces the compiled cubin. Source, a launch manifest or a driver script help the agent reproduce your launch sooner, and each is optional. To have the kernel optimized, the thinking modes need the source and the commands that build, run and check it.

Can MarsTrace make my kernel faster?

In the thinking modes, yes. After the trace, an agent changes your source one measured iteration at a time. It keeps a change only if it is faster and your check still passes, and returns a patch with reports of the time before and after. When nothing it tries is faster, its process report lists what it ruled out.

Which kernels can I trace?

Any CUDA kernel you can get as a cubin for the GPU you pick: hand-written CUDA C++, Triton, torch.compile, TileLang and CuTeDSL. marstrace cubin find picks a kernel out of the compiler caches after one run.

I have never read a kernel trace. Is this for me?

Yes. Run the example in the client first, or let your coding agent drive: with the plugin it gathers the cubin, writes the job, reads the trace and explains what it found. The console shows the same trace as a timeline you can explore.

What happens to my code?

Each job gets its own GPU machine with no network access, started for it and deleted when it ends, and your workspace runs in a sandbox. The agent reads what you upload, so upload only what it needs; .git is never uploaded. Uploads are deleted 24 hours after the job ends and results after 30 days. The agent's requests and replies, which can quote your code, are kept for 30 days for MarsCompute administrators only.

How is MarsTrace related to MarsRover?

MarsTrace is the tracer in MarsRover, our toolbox for agentic kernel optimization, run as a service on our GPUs. A trace is where an optimization starts; the technology page shows how agents turn traces into faster kernels.

Trace your first kernel.

Set up in a few minutes: sign up, add credit, and create a MarsTrace key on the console’s API keys page.