NVIDIA / cuda-samples

Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Other
6.2k stars 1.78k forks source link

Error in sample reduction code #272

Open JacobWongDev opened 3 months ago

JacobWongDev commented 3 months ago

Hi,

I came across an error in the reduction code under reduction_kernel.cu

On line 931, I think the kernel should be given the template parameter "false" instead of "true":

reduce7<T, 1024, true false>

Please let me know if this is intentional.

Thank you.

toxicteddy00077 commented 2 months ago

You're right, the correct param is false.