Skip to content

Instantly share code, notes, and snippets.

@Naltharial
Last active January 4, 2016 20:29
Show Gist options
  • Save Naltharial/8673933 to your computer and use it in GitHub Desktop.
Save Naltharial/8673933 to your computer and use it in GitHub Desktop.
size_t shrRoundUp(size_t localWorkSize, size_t numItems) {
size_t result = localWorkSize;
while (result < numItems)
result += localWorkSize;
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment