Find max of matrix in CUDA

后端 未结 2 1360
忘了有多久
忘了有多久 2021-01-15 06:51

I just started in CUDA. Now I have a question. I have N*N matrix, and a window scale is 8x8. I want subdivided this matrix into multiple sub-matrix and find max value of thi

2条回答
  •  逝去的感伤
    2021-01-15 07:05

    In case you're willing to use a library, few pointers:

    • use NPP, set of primitives (from nvidia) https://docs.nvidia.com/cuda/npp/group__image__filter__max.html

    • a lower level library, for other reduce operations and more granularity in the way you use the hardware (from nvidia / nvlabs) http://nvlabs.github.io/cub/

提交回复
热议问题