From 26033e740147510683e499ceda3b52b51cc67e41 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 16 Apr 2014 11:13:13 +0000 Subject: Remove more missed padding --- cuda/2d/darthelper.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cuda/2d/darthelper.cu b/cuda/2d/darthelper.cu index b61eaae..064913a 100644 --- a/cuda/2d/darthelper.cu +++ b/cuda/2d/darthelper.cu @@ -320,11 +320,11 @@ void dartSmoothing(float* out, const float* in, float b, unsigned int radius, un float* D_outData; unsigned int pitch; - allocateVolume(D_inData, width+2, height+2, pitch); + allocateVolume(D_inData, width, height, pitch); copyVolumeToDevice(in, width, width, height, D_inData, pitch); - allocateVolume(D_outData, width+2, height+2, pitch); - zeroVolume(D_outData, pitch, width+2, height+2); + allocateVolume(D_outData, width, height, pitch); + zeroVolume(D_outData, pitch, width, height); dim3 blockSize(16,16); dim3 gridSize((width+15)/16, (height+15)/16); -- cgit v1.2.3