From 2ba8a2a3953a92b5eba50fc45a4ec5d52c2e1239 Mon Sep 17 00:00:00 2001 From: Colin Heinzmann Date: Wed, 20 Apr 2016 11:53:23 -0400 Subject: [PATCH] fixed swapping of numBlocks and threadsPerBlock caused some oversized formatting issues --- openbr/plugins/cuda/cudacvtfloat.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbr/plugins/cuda/cudacvtfloat.cu b/openbr/plugins/cuda/cudacvtfloat.cu index 1ec4344..e93cbd7 100644 --- a/openbr/plugins/cuda/cudacvtfloat.cu +++ b/openbr/plugins/cuda/cudacvtfloat.cu @@ -41,12 +41,12 @@ namespace br { namespace cuda { namespace cvtfloat { CUDA_SAFE_MALLOC(dst, rows*cols*sizeof(float), &err); dim3 threadsPerBlock(8, 8); - dim3 blocks( + dim3 numBlocks( cols / threadsPerBlock.x + 1, rows / threadsPerBlock.y + 1 ); - kernel<<>>((const unsigned char*)src, (float*)(*dst), rows, cols); + kernel<<>>((const unsigned char*)src, (float*)(*dst), rows, cols); CUDA_KERNEL_ERR_CHK(&err); // free the src memory since it is now in a newly allocated dst -- libgit2 0.21.4