sync c928d21e6cc1
Browse filesFiles changed (3)
3 unmodified lines45678910111213141516171819202122232425263 unmodified lines// 2D-folded flat index: gid.y carries the high bits when the element count exceeds the// maxComputeWorkgroupsPerDimension limit (the dispatch caps x and spills the rest into y).let invocation = gid.x + gid.y * nwg.x * {{ tunables.WORKGROUP_SIZE }}u;{% if source.itemsPerInvocation is defined %}// Tail-safe scalar x4 keeps vector-like dispatch density without requiring// the logical tensor length (or its storage binding) to be vec4 aligned.let begin = invocation * {{ source.itemsPerInvocation }}u;let end = min(begin + {{ source.itemsPerInvocation }}u, params.count);for (var i = begin; i < end; i = i + 1u) {{%- else %}let i = invocation;if (i >= params.count) {return;}{%- endif %}{% endmacro %}{% macro flat_tail_close() %}{% if source.itemsPerInvocation is defined %}}{% endif %}{% endmacro %}{% macro offset_fn(fn_name, opShape, opRank, op_same, op_numel, outShape, outRank, out_numel) %}3 unmodified lines45678910111213141516173 unmodified lines// 2D-folded flat index: gid.y carries the high bits when the element count exceeds the// maxComputeWorkgroupsPerDimension limit (the dispatch caps x and spills the rest into y).let invocation = gid.x + gid.y * nwg.x * {{ tunables.WORKGROUP_SIZE }}u;// Tail-safe scalar x4 keeps vector-like dispatch density without requiring// the logical tensor length (or its storage binding) to be vec4 aligned.let begin = invocation * {{ source.itemsPerInvocation }}u;let end = min(begin + {{ source.itemsPerInvocation }}u, params.count);for (var i = begin; i < end; i = i + 1u) {{%- endmacro %}{% macro flat_tail_close() %}}{% endmacro %}{% macro offset_fn(fn_name, opShape, opRank, op_same, op_numel, outShape, outRank, out_numel) %}
89 unmodified lines909192939495967 unmodified lines10410510610710810911089 unmodified lines"cShape": "shapes.C","aRank": "ranks.A","bRank": "ranks.B","cRank": "ranks.C"}},"bindings": [7 unmodified lines"struct": { "name": "Params", "fields": [{ "name": "count", "type": "u32", "value": "numel(shapes.C)" }] }}],"dispatch": { "threads": "numel(shapes.C)", "workgroupSize": "tunables.WORKGROUP_SIZE" }}]},89 unmodified lines90919293949596977 unmodified lines10510610710810911011189 unmodified lines"cShape": "shapes.C","aRank": "ranks.A","bRank": "ranks.B","cRank": "ranks.C","itemsPerInvocation": 4}},"bindings": [7 unmodified lines"struct": { "name": "Params", "fields": [{ "name": "count", "type": "u32", "value": "numel(shapes.C)" }] }}],"dispatch": { "threads": "ceilDiv(numel(shapes.C), 4)", "workgroupSize": "tunables.WORKGROUP_SIZE" }}]},
1234561 unmodified line8910111213141516171819{"name": "ai.onnx.BitwiseAnd","id": "_ai_onnx_bitwiseand_webgpu_fc31afb","version": 1,"license": "Apache-2.0","backend": { "type": "webgpu" },1 unmodified line"algorithm": "sha256","files": {"bench.json": "fRx315OyxB60G0bWyXB3DTHeebA2A5Krm0LATx+ggio=","bitwise-binary-broadcast.wgsl.jinja": "N06Hs2oYVObcwu7yEYqmZQBNqGsjZGlVeWMhjxT23Hw=","bitwise-binary-vec4.wgsl.jinja": "IO1Z3esuK46FeyJHI7IeZb9mo2iV7Ugp4we/V1WbKO4=","manifest.json": "gQy4ymK2zflXsJlqRfiDKdS3O0qJ4PYc0cgfXssQI2U=","test.json": "neQ6KvNwAJ/6IyyYII8qCB+Z0MYKiwA1A8Y8ugemDaA="}},"provenance": { "kernel": { "sha": "2e7068faf55e7f43df740015f6d1ee49391a41c5", "dirty": false } },"webgpu": { "manifestSpec": "1.0", "specialized": true, "opPath": "ops/ai.onnx.BitwiseAnd" }}1234561 unmodified line8910111213141516171819{"name": "ai.onnx.BitwiseAnd","id": "_ai_onnx_bitwiseand_webgpu_6e80cf2","version": 1,"license": "Apache-2.0","backend": { "type": "webgpu" },1 unmodified line"algorithm": "sha256","files": {"bench.json": "fRx315OyxB60G0bWyXB3DTHeebA2A5Krm0LATx+ggio=","bitwise-binary-broadcast.wgsl.jinja": "RCjn7BVX/bwpqqBWr5VMlxLy7mqeOJptl9+uJazGZ/w=","bitwise-binary-vec4.wgsl.jinja": "IO1Z3esuK46FeyJHI7IeZb9mo2iV7Ugp4we/V1WbKO4=","manifest.json": "R/soQJlNHuIudBB4Obz05CjZ99bY9ppN1UpPTb4CJoc=","test.json": "neQ6KvNwAJ/6IyyYII8qCB+Z0MYKiwA1A8Y8ugemDaA="}},"provenance": { "kernel": { "sha": "c928d21e6cc1310861cba3bafb75f5f679ecf5f3", "dirty": false } },"webgpu": { "manifestSpec": "1.0", "specialized": true, "opPath": "ops/ai.onnx.BitwiseAnd" }}
build/webgpu/bitwise-binary-broadcast.wgsl.jinja+1-10
build/webgpu/manifest.json+3-2
build/webgpu/metadata.json+4-4