MCPcopy Create free account
hub / github.com/apache/tvm / WebGPUNamespace

Class WebGPUNamespace

python/tvm/tirx/script/builder/ir.py:2982–3001  ·  view source on GitHub ↗

The WebGPU intrinsics submodule.

Source from the content-addressed store, hash-verified

2980
2981
2982class WebGPUNamespace:
2983 """The WebGPU intrinsics submodule."""
2984
2985 @staticmethod
2986 def subgroup_shuffle(var, lane):
2987 if isinstance(var, Buffer):
2988 var = var[0]
2989 return _tir_op.call_intrin(var.dtype, "tirx.webgpu.subgroup_shuffle", var, lane)
2990
2991 @staticmethod
2992 def subgroup_shuffle_up(var, delta):
2993 if isinstance(var, Buffer):
2994 var = var[0]
2995 return _tir_op.call_intrin(var.dtype, "tirx.webgpu.subgroup_shuffle_up", var, delta)
2996
2997 @staticmethod
2998 def subgroup_shuffle_down(var, delta):
2999 if isinstance(var, Buffer):
3000 var = var[0]
3001 return _tir_op.call_intrin(var.dtype, "tirx.webgpu.subgroup_shuffle_down", var, delta)
3002
3003
3004webgpu = WebGPUNamespace()

Callers 1

ir.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…