mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-28 10:09:15 +08:00
fixed issue #272 in reduction_kernel.cu
This commit is contained in:
parent
5f97d7d0df
commit
1a4abc7966
|
@ -928,7 +928,7 @@ void reduce(int size, int threads, int blocks, int whichKernel, T *d_idata,
|
|||
} else {
|
||||
switch (threads) {
|
||||
case 1024:
|
||||
reduce7<T, 1024, true>
|
||||
reduce7<T, 1024, false>
|
||||
<<<dimGrid, dimBlock, smemSize>>>(d_idata, d_odata, size);
|
||||
break;
|
||||
case 512:
|
||||
|
|
Loading…
Reference in New Issue
Block a user