Skip to content

Commit

Permalink
Fix refine grads
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBrussee committed Feb 23, 2025
1 parent d7b7280 commit 8757d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/brush-train/src/shaders/rasterize_backwards.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var<workgroup> local_id: array<i32, BATCH_SIZE>;
// Current queue of gradients to be flushed.
var<workgroup> grad_count: atomic<i32>;

const TOTAL_GRADS = BATCH_SIZE * 10;
const TOTAL_GRADS = BATCH_SIZE * 11;
var<workgroup> gather_grads: array<f32, TOTAL_GRADS>;
var<workgroup> gather_grad_id: array<i32, BATCH_SIZE>;

Expand Down

0 comments on commit 8757d4c

Please sign in to comment.