E6016

E6016 — A Topology or Memory declaration whose identity cannot be relied on. Three forms: a declared topology tries to override hardware facts of a built-in topology (like arch:, chip:, or transfer edges) — the compiler refuses such overrides, though patching dtypes: is allowed on a topology that owns its memory space (except CPU); or two declared names collide on one dispatch id (custom ids are derived from the name by hashing), in which case which declaration is in force would be hash-iteration order — observed as the same program getting a device image on some runs and not others for a topology, and as a transfer carrying the other space's capacity and granule for a memory space; or a topology whose arch: is not nvptx64 has Memory::GPU_HBM as its memory. That memory belongs to the built-in NVIDIA GPU, so the tensors of the topology would go to that GPU, and its kernels would run elsewhere. Give the memory another name.

What the compiler reports

E6016
topology 'GPU' has the name of a built-in topology, and declares no `dtypes:`. A declaration with a built-in name can only add `dtypes:`

The fragments the test suite holds the compiler to. An ellipsis marks text the test does not constrain; the emitted message also carries a source location.

A program that triggers it

// A declaration of a built-in topology that declares no dtypes: is refused.

Topology GPU {
  memory: Memory::GPU_HBM
}

fn main() -> i32 {
  return 0;
}

From tests/middle_end/fail/builtin_topology_no_dtypes.vx, which asserts this diagnostic on every commit.

Related