4 ms·
> The GPU-straightforward implementation is to use a SIMD-stack / SIMD-queue I agree. Haven’t personally did that exact thing because wave intrinsics require D
by Const-me 5y ago
> The GPU-straightforward implementation is to use a SIMD-stack / SIMD-queue
I agree. Haven’t personally did that exact thing because wave intrinsics require D3D 12.2 (or new enough CUDA like in your example), but I did similar stuff with group shared memory which is more compatible, only requires feature level 11.0 hardware.
However, that GPU-straightforward implementation is not that straightforward for programmers with CPU background starting to use GPUs. Even simpler things like reduction (dot product, or matrix*vector in linear algebra) are rather tricky to implement efficiently on GPUs, very different than even manually-vectorized SIMD CPU code.