tilelang.ascend.target¶

Functions¶

target_is_ascend(target)

Return whether target uses the Ascend architecture.

target_is_pto(target)

Return whether target selects PTO within the Ascend architecture.

target_is_plain_ascend(target)

Return whether target selects AscendC rather than PTO codegen.

check_ascend_availability()

normalize_ascend_target(target)

normalize_pto_target(target)

normalize_asc_target(target)

Accept asc as the concise name for the AscendC backend.

Module Contents¶

tilelang.ascend.target.target_is_ascend(target)¶

Return whether target uses the Ascend architecture.

Parameters:

target (tvm.target.Target)

Return type:

bool

tilelang.ascend.target.target_is_pto(target)¶

Return whether target selects PTO within the Ascend architecture.

Parameters:

target (tvm.target.Target)

Return type:

bool

tilelang.ascend.target.target_is_plain_ascend(target)¶

Return whether target selects AscendC rather than PTO codegen.

Parameters:

target (tvm.target.Target)

Return type:

bool

tilelang.ascend.target.check_ascend_availability()¶
Return type:

bool

tilelang.ascend.target.normalize_ascend_target(target)¶
Parameters:

target (tilelang.backend.target.TargetLike)

Return type:

tvm.target.Target | None

tilelang.ascend.target.normalize_pto_target(target)¶
Parameters:

target (tilelang.backend.target.TargetLike)

Return type:

tvm.target.Target | None

tilelang.ascend.target.normalize_asc_target(target)¶

Accept asc as the concise name for the AscendC backend.

Parameters:

target (tilelang.backend.target.TargetLike)

Return type:

tvm.target.Target | None