E6016
E6016 — ATopologyorMemorydeclaration whose identity cannot be relied on. Three forms: a declared topology tries to override hardware facts of a built-in topology (likearch:,chip:, or transfer edges) — the compiler refuses such overrides, though patchingdtypes:is allowed on a topology that owns its memory space (exceptCPU); 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 atransfercarrying the other space's capacity and granule for a memory space; or a topology whosearch:is notnvptx64hasMemory::GPU_HBMas 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
Topologies and memoryThe chapter covering the rule this code enforces.
All diagnosticsEvery code the compiler can emit, grouped by stage.
E6015A structurally invalid transfer lowering (
impl transfer A -> B { ... }): the same edge implemented twice in one compilation (which one is in force would be load order), or a lowering with no functions (an empty body cannot move anything, and accepting it would make impl transfer an inert annotation rather than code).
E6017A misuse of the raw:: transfer-lowering primitives (Vx#353): a raw:: call outside an impl transfer body, an unknown primitive name, a tile argument that is not a bare parameter name (the primitives are indexed, not addressed), a store into a tile not held by &mut, or a wrongly typed index/value.