tvm_tirx.target#
Target configuration and registry.
TVM uses JSON-based target configuration. Targets can be constructed via:
A config dictionary:
Target({"kind": "cuda", "arch": "sm_80"})A tag name:
Target("nvidia/nvidia-a100")A tag with overrides:
Target({"tag": "nvidia/nvidia-a100", "l2_cache_size_bytes": 12345})A kind name:
Target("cuda")
Use target.attrs["key"] to access target attributes such as
"arch", "max_num_threads", "mcpu", "libs", etc.
Use tvm_tirx.target.list_tags() to list all available target tags,
and tvm_tirx.target.register_tag() to register new tags.
Classes#
|
Target device information, use through TVM API. |
|
Kind of a compilation target |
Functions#
|
Construct a runtime device from a compilation target. |
Returns a dict of tags, which maps each tag name to its corresponding target. |
|
|
Add a user-defined tag into the target tag registry. |
Namespaces#
Supporting classes#
|