Counting occurrences of numbers in a CUDA array

前端 未结 4 833
醉梦人生
醉梦人生 2020-12-10 16:37

I have an array of unsigned integers stored on the GPU with CUDA (typically 1000000 elements). I would like to count the occurrence of every number in the array

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 17:00

    I suppose you can find help in the CUDA examples, specifically the histogram examples. They are part of the GPU computing SDK. You can find it here http://developer.nvidia.com/cuda-cc-sdk-code-samples#histogram. They even have a whitepaper explaining the algorithms.

提交回复
热议问题