mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2024-11-24 16:19: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 {
|
} else {
|
||||||
switch (threads) {
|
switch (threads) {
|
||||||
case 1024:
|
case 1024:
|
||||||
reduce7<T, 1024, true>
|
reduce7<T, 1024, false>
|
||||||
<<<dimGrid, dimBlock, smemSize>>>(d_idata, d_odata, size);
|
<<<dimGrid, dimBlock, smemSize>>>(d_idata, d_odata, size);
|
||||||
break;
|
break;
|
||||||
case 512:
|
case 512:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user