Skip to main content

Module cli

Module cli 

Source
Expand description

Command-line surface for CGP.

Lives in the library (not the binary target) so that any host binary can embed the full cgp command tree: parse with Cli, then hand the parsed Commands to dispatch. The standalone aprender-cgp binary is a thin shim over run.

Structs§

Cli
CGP: Compute-GPU-Profile — Unified Performance Analysis CLI

Enums§

Commands
Top-level cgp subcommands.
ContractAction
Actions accepted by cgp contract.
ProfileTarget
Targets accepted by cgp profile.

Constants§

CGP_BACKEND_VALUES
Backends cgp profile compare --backends accepts.

Functions§

dispatch
Run a parsed Commands value.
dispatch_contract
Run a parsed ContractAction (the cgp contract subtree).
dispatch_profile
Run a parsed ProfileTarget (the cgp profile subtree).
run
Parse std::env::args as a Cli and run the selected command.