From e6ea799368e1c289feb6e17b723fc3508ab744e9 Mon Sep 17 00:00:00 2001 From: John Rehbein Date: Thu, 13 Feb 2025 12:46:13 -0800 Subject: [PATCH] Fix #41 --- cuda/src/labeling_hennequin_2018_HA4.cu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cuda/src/labeling_hennequin_2018_HA4.cu b/cuda/src/labeling_hennequin_2018_HA4.cu index eba5840..390801e 100644 --- a/cuda/src/labeling_hennequin_2018_HA4.cu +++ b/cuda/src/labeling_hennequin_2018_HA4.cu @@ -102,9 +102,8 @@ __global__ void StripLabeling(const cuda::PtrStepSzb img, cuda::PtrStepSzi label labels.data[labels_index] = labels_index - ((threadIdx.x == 0) ? distance_y : 0) + 1; } -#if __CUDA_ARCH__ < 700 + // This synchronize call is not included in the HA4_Strip_Labeling() psuedocode in 10.1109/dasip.2018.8596835 but is necessary __syncthreads(); -#endif if (threadIdx.x == 0) { shared_pixels[threadIdx.y] = pixels_y;