Skip to main content
Simple collective-operation simulation

Endpoints


Submit a collective-operation workload for simple network simulation

POST /api/v1/simple/simulations Validates the workload against operation/algorithm compatibility rules, resolves or synthesizes a topology and traceset, creates a configuration, and launches a simulation. Returns immediately with status accepted; poll GET /api/v1/simulations/{simulationId} to track progress. Note: the poll response uses a different schema (SimulationDetails) — the simulation ID is returned as id (not simulationId), the workload is not echoed back, and the status transitions from accepted to provisioning on the next poll. Identical workloads are deduplicated via content-addressed tracesets.

Request Body

Example: 128-rank AllReduce with default topology
Example: Custom topology with 192 ranks
Example: Multiple phases in one submission
Example: AllToAll with sequential algorithm
Example: Broadcast followed by scatter
Example: Parallel groups executing concurrently
Example: Multiple group specs with different operations

Responses

202 - Simulation accepted for processing
400 - Validation error — invalid rank count, unsupported operation/algorithm combination, both topology and topologyConstraints set, or constraint solver cannot satisfy the request Rank count not in reference set (no constraints):
Algorithm not valid for operation:
Both topology and topologyConstraints provided:
401 - Missing or invalid authentication token

Preview the derived topology for a simple simulation request

POST /api/v1/simple/simulations/preview Runs the full validation and topology derivation pipeline against the provided workload or groups, then returns the physical network topology that would be produced — without creating a simulation, traceset, or configuration. The request body is identical to POST /api/v1/simple/simulations. The workload/groups payload is required because the total rank count drives topology derivation (rack count, tier selection, switch allocation), but no workload details are echoed in the response. The response describes only the physical network: tier structure, switch counts, link counts, data rates, and resolved constraint values.

Request Body

Example: 128-rank AllReduce — produces 2-tier topology
Example: 8 ranks with constraints — produces 1-tier (single rack)
Example: 16384 ranks — produces 3-tier pod topology

Responses

200 - Topology preview computed successfully
400 - Validation error — identical to POST /api/v1/simple/simulations Rank count not in reference set (no constraints):
401 - Missing or invalid authentication token

Get the operation/algorithm compatibility matrix

GET /api/v1/simple/compatibility Returns the full compatibility matrix mapping each collective operation type to its allowed algorithms, platform default, and power-of-two constraints. This is a static reference endpoint — the matrix does not change between requests.

Responses

200 - Compatibility matrix
401 - Missing or invalid authentication token