File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 4848@group(0) @binding(0) var<storage, read_write> input : array<f32>;
4949@group(0) @binding(1) var<storage, read_write> output : array<f32>;
5050@compute @workgroup_size(256)
51- fn main(
52- @builtin(global_invocation_id) GlobalInvocationID: vec3<u32>) {
53- let i: u32 = GlobalInvocationID.x;
54- if (i < arrayLength(&input)) {
55- output[i] = input[i] + 1;
56- }
51+ fn main(@builtin(global_invocation_id) GlobalInvocationID: vec3<u32>) {
52+ let i: u32 = GlobalInvocationID.x;
53+ if (i < arrayLength(&input)) {
54+ output[i] = input[i] + 1;
5755 }
56+ }
5857"""
5958
6059# TODO(avh) : Global state handling of terminal binding, module creation, etc.
@@ -107,7 +106,7 @@ def output():
107106 return Div (
108107 "Output" ,
109108 id = "output" ,
110- style = "width: 34vw ; height:100vh; background-color: #444; float: right;" ,
109+ style = "width: 50vw ; height:100vh; background-color: #444; float: right;" ,
111110 ), Script (bind_terminal )
112111
113112
@@ -119,7 +118,7 @@ def get():
119118 Div (
120119 Div (
121120 CodeEditor (initial_content = gelu_kernel ),
122- style = "width: 66vw ; height:100vh; background-color: #333; float: left;" ,
121+ style = "width: 50vw ; height:100vh; background-color: #333; float: left;" ,
123122 ),
124123 output (),
125124 ),
You can’t perform that action at this time.
0 commit comments