Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
init pixel counts thrust
const int PIXEL_COUNT = 500 * 500;
auto pixelCounts = thrust::device_vector<unsigned int>(PIXEL_COUNT);
thrust::fill(pixelCounts.begin(), pixelCounts.end(), 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment