NVIDIA / cuda-samples

Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Other
6.47k stars 1.83k forks source link

Error in sample reduction code #272

Open JacobWongDev opened 5 months ago

JacobWongDev commented 5 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 4 months ago

You're right, the correct param is false.