Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 10, 2024
1 parent ad57936 commit 6c95bf6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ cudaError_t generateSweepPoints_launch(
const float * transform, int num_features, float * output_points, cudaStream_t stream);

cudaError_t generateVoxels_random_launch(
const float * points, std::size_t points_size, float min_x_range, float max_x_range, float min_y_range,
float max_y_range, float min_z_range, float max_z_range, float pillar_x_size, float pillar_y_size,
float pillar_z_size, int grid_y_size, int grid_x_size, unsigned int * mask, float * voxels,
cudaStream_t stream);
const float * points, std::size_t points_size, float min_x_range, float max_x_range,
float min_y_range, float max_y_range, float min_z_range, float max_z_range, float pillar_x_size,
float pillar_y_size, float pillar_z_size, int grid_y_size, int grid_x_size, unsigned int * mask,
float * voxels, cudaStream_t stream);

cudaError_t generateBaseFeatures_launch(
unsigned int * mask, float * voxels, int grid_y_size, int grid_x_size, int max_voxel_size,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ cudaError_t generateSweepPoints_launch(
}

__global__ void generateVoxels_random_kernel(
const float * points, std::size_t points_size, float min_x_range, float max_x_range, float min_y_range,
float max_y_range, float min_z_range, float max_z_range, float pillar_x_size, float pillar_y_size,
float pillar_z_size, int grid_y_size, int grid_x_size, unsigned int * mask, float * voxels)
const float * points, std::size_t points_size, float min_x_range, float max_x_range,
float min_y_range, float max_y_range, float min_z_range, float max_z_range, float pillar_x_size,
float pillar_y_size, float pillar_z_size, int grid_y_size, int grid_x_size, unsigned int * mask,
float * voxels)
{
int point_idx = blockIdx.x * blockDim.x + threadIdx.x;
if (point_idx >= points_size) return;
Expand All @@ -118,10 +119,10 @@ __global__ void generateVoxels_random_kernel(
}

cudaError_t generateVoxels_random_launch(
const float * points, std::size_t points_size, float min_x_range, float max_x_range, float min_y_range,
float max_y_range, float min_z_range, float max_z_range, float pillar_x_size, float pillar_y_size,
float pillar_z_size, int grid_y_size, int grid_x_size, unsigned int * mask, float * voxels,
cudaStream_t stream)
const float * points, std::size_t points_size, float min_x_range, float max_x_range,
float min_y_range, float max_y_range, float min_z_range, float max_z_range, float pillar_x_size,
float pillar_y_size, float pillar_z_size, int grid_y_size, int grid_x_size, unsigned int * mask,
float * voxels, cudaStream_t stream)
{
dim3 blocks((points_size + 256 - 1) / 256);
dim3 threads(256);
Expand Down

0 comments on commit 6c95bf6

Please sign in to comment.