Skip to content

Commit e2368dc

Browse files
committed
fix: silu.
1 parent 383102f commit e2368dc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/nn/vulkan/silu-forward-f32-f32.comp

-3
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,17 @@ layout(binding = 0) readonly buffer inputBuffer { float x[]; };
1515
layout(binding = 1) writeonly buffer outputBuffer { float y[]; };
1616
layout(binding = 2) readonly buffer batchInfosBuffer { BatchInfo infos[]; };
1717

18-
shared uint sharedPosition;
1918
shared BatchInfo sharedInfo;
2019

2120
void main() {
2221
const uint threadIndex = gl_LocalInvocationID.x;
2322
const uint batchIndex = gl_GlobalInvocationID.y;
2423

2524
if (threadIndex == 0) {
26-
sharedPosition = uint(x[batchIndex]);
2725
sharedInfo = infos[batchIndex];
2826
}
2927

3028
barrier();
31-
memoryBarrierShared();
3229

3330
const uint inputSizeX = sharedInfo.inputSizeX;
3431
const uint xOffset = sharedInfo.inputOffset;

0 commit comments

Comments
 (0)