mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 09:44:28 +00:00
Cleanup and refactor
This commit is contained in:
@@ -50,7 +50,6 @@ void Utils::sum(float* d_vec, float* d_sum, const unsigned int length) {
|
||||
|
||||
int remaining = gridSize;
|
||||
while (remaining > 1) {
|
||||
std::cout << remaining << std::endl;
|
||||
int blocks_needed = (remaining + BLOCK_SIZE - 1) / BLOCK_SIZE;
|
||||
CUDANet::Kernels::sum_reduce<<<blocks_needed, BLOCK_SIZE>>>(d_sum, d_sum, remaining);
|
||||
remaining = blocks_needed;
|
||||
|
||||
Reference in New Issue
Block a user