how to use printf inside a CUDA kernel?. Learn more about kernel, parallel.gpu.cudakernel Parallel Computing Toolbox
Yeah, I was surprised to see you calling your reduction from inside a kernel. I assumed you wanted to call thrust::reduce from the CPU context where it’ll launch a properly configured kernel to give you the reduction you desire.Zen