Skip to content

Manually controlling number of workgroups in WorkerGrid? #498

Answered by lpld
lpld asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, looks like there's a simpler (and pretty obvious) solution to this:

WorkerGrid2D workerGrid = new WorkerGrid2D(m * BLOCK_SIZE, n / BLOCK_SIZE);
workerGrid.setLocalWork(BLOCK_SIZE * BLOCK_SIZE, 1, 1);

Interesting that it is slower than my first implementation with recalculated indices. But that's probably another question.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stratika
Comment options

Answer selected by lpld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants