File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 48
48
@group(0) @binding(0) var<storage, read_write> input : array<f32>;
49
49
@group(0) @binding(1) var<storage, read_write> output : array<f32>;
50
50
@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;
57
55
}
56
+ }
58
57
"""
59
58
60
59
# TODO(avh) : Global state handling of terminal binding, module creation, etc.
@@ -107,7 +106,7 @@ def output():
107
106
return Div (
108
107
"Output" ,
109
108
id = "output" ,
110
- style = "width: 34vw ; height:100vh; background-color: #444; float: right;" ,
109
+ style = "width: 50vw ; height:100vh; background-color: #444; float: right;" ,
111
110
), Script (bind_terminal )
112
111
113
112
@@ -119,7 +118,7 @@ def get():
119
118
Div (
120
119
Div (
121
120
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;" ,
123
122
),
124
123
output (),
125
124
),
You can’t perform that action at this time.
0 commit comments