Environment variables#
This topic lists the environment variables that enable testing, debugging, and experimental features for Tensile clients and applications.
Environment variable |
Value |
|---|---|
TENSILE_DBEnables debugging features based on the supplied value. Bit field options can be set individually or combined.
|
Hexadecimal bit field values:
0x2 or 0x4: Solution selection process information0x8: Hardware selection process information0x10: Predicate evaluation debug information0x20: Code object library loading status0x40: Kernel launch arguments and parameters0x80: Allocated tensor sizes0x100: Convolution reference calculation debug info0x200: Detailed convolution reference calculations0x1000: Library loading information (YAML/MessagePack)0x4000: Solution lookup efficiency0x8000: Selected kernel names0x80000: Detailed kernel parameters (Matrix Instruction, MacroTile, etc.)0xFFFF: Enable all debug output |
TENSILE_DB2Enables extended debugging features. Skips kernel launches but continues kernel selection and data allocation.
|
1: Enable extended debugging2: Disable extended debugging |
TENSILE_NAIVE_SEARCHPerforms naive search for matching kernels instead of optimized search.
|
1: Enable naive search2: Disable naive search |
TENSILE_TAM_SELECTION_ENABLEEnables tile aware solution selection.
|
1: Enable tile aware selection2: Disable tile aware selection |
TENSILE_SOLUTION_INDEXPrints the index of the selected solution.
|
1: Enable solution index printing2: Disable solution index printing |
TENSILE_METRICOverrides the default distance matrix for solution selection.
|
“Euclidean”: Euclidean distance metric
“JSD”: Jensen-Shannon divergence metric
“Manhattan”: Manhattan distance metric
“Ratio”: Ratio-based metric
“Random”: Random selection metric
|
TENSILE_PROFILEEnables profiling of functions decorated with @profile decorator. Results generated as .prof files.
|
1, “ON”, “TRUE”: Enable profilingAny other value: Disable profiling
|