Common#

Tensile.Common.getArchitectureName(gfxName: str) str | None#

Maps the provided Gfx architecture to its common name using the architectureMap.

Parameters:

gfxName – Gfx architecture name to map.

Returns:

Common name associated with the provided gfxName if it matches or is a substring of a key in architectureMap, otherwise None.

Tensile.Common.tPrint(verbosity: int, arg) None#

Conditionally prints input to stdout.

If the global print level is greater than or equal to the verbosity, the argument is printed to stdout.

Parameters:
  • verbosity – Level to use for printing arg.

  • arg – Item to print to stdout.