Created
October 23, 2018 02:01
-
-
Save rharriso/4f71544a1132ba780b75c84e079e5b01 to your computer and use it in GitHub Desktop.
Initialize Body Counts Cuda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int PIXEL_COUNT = 500 * 500; | |
usigned int *pixelBodyCounts; | |
cudaMallocManaged(&pixelBodyCounts, PIXEL_COUNT * sizeof(unsigned int)); | |
initZeros<<<numBlocks, blockSize>>>(pixelBodyCounts); | |
// do stuff with the pixels | |
cudaFree(pixelBodyCounts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment