tvm_tirx.tirx.script.gpu_thread_filter#
- tvm_tirx.tirx.script.gpu_thread_filter(var, pred, *, loc=UNKNOWN_LOC, ty=None)#
Thread-set filter escape hatch.
Use this wrapper only when the predicate is not in the canonical thread-filter grammar (see
src/tirx/analysis/filter_canonical.h). Canonical predicates – pure conjunctions ofscopeid_var <op> constcomparisons plus bareT.cuda.elect_sync()calls – are recognized by the lowering pass directly fromif cond:, so the wrapper is redundant for them.When wrapped:
var(a CUDA-index-bound scope identifier) tells the compiler which active-set axis to collapse to a singleton when the opaque predicate evaluates true;predis preserved verbatim and evaluated at runtime.- Parameters:
loc (Location)