Is there a good implementation of reduction algorithm callable from kernel with dynamic parallelism?

StackOverflow https://stackoverflow.com/questions/21071278

  •  27-09-2022
  •  | 
  •  

Вопрос

I see reductions algorithms in CUDA (such as summation and maximization over a range of elements) discussed in previous posts, but with dynamic parallelism, they could potentially be implemented in a different way. Is there a more efficient implementation which is callable from inside the kernels?

Это было полезно?

Решение

Is there a more efficient implementation which is callable from inside the kernels?

CUB provides a CUDA reduction primitive compatible with dynamic parallelism, namely, that can be called within kernels.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top