Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Merge branch 'lidar_cluster_rtx' into 'master'
Browse files Browse the repository at this point in the history
CUDA.  Update lidar_euclidean_cluster_detect for NVIDIA Volta and Turing archictecture

See merge request autowarefoundation/autoware.ai/core_perception!3
  • Loading branch information
Geoffrey Biggs committed Jun 19, 2019
2 parents 223891b + cb69936 commit b84131f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ buildClusterMatrix(float *x, float *y, float *z, int *cluster_indices, int *clus
__shared__ float local_y[BLOCK_SIZE_X];
__shared__ float local_z[BLOCK_SIZE_X];

if (index>size)
return;

for (int column = index; column < size; column += stride)
{
local_x[threadIdx.x] = x[column];
Expand All @@ -228,11 +231,10 @@ buildClusterMatrix(float *x, float *y, float *z, int *cluster_indices, int *clus
int row_cluster = cluster_indices[row];
int rc_offset = cluster_offset[row_cluster];

__syncthreads();

if (row_cluster != column_cluster && norm3df(tmp_x, tmp_y, tmp_z) < threshold)
cluster_matrix[rc_offset * cluster_num + cc_offset] = 1;
}
__syncthreads();
}
}

Expand Down

0 comments on commit b84131f

Please sign in to comment.