Skip to content

Instantly share code, notes, and snippets.

@rharriso
Created October 23, 2018 02:02
Show Gist options
  • Save rharriso/412ce750751d607ec3649454646c57a5 to your computer and use it in GitHub Desktop.
Save rharriso/412ce750751d607ec3649454646c57a5 to your computer and use it in GitHub Desktop.
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