Apollo 11.0
自动驾驶开放平台
pfe_cuda.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2020 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
17#pragma once
18
20
21namespace apollo {
22namespace perception {
23namespace lidar {
24
25class PfeCuda {
26 public:
40 PfeCuda(int max_num_pillars, int max_num_points_per_pillar,
41 int num_point_feature, int num_gather_point_feature,
42 float pillar_x_size, float pillar_y_size, float min_x_range,
43 float min_y_range, int num_threads);
44
49 ~PfeCuda() = default;
50
59 void GatherPointFeature(float* dev_pillar_point_feature,
60 float* dev_num_points_per_pillar,
61 float* dev_pillar_coors,
62 float* dev_pfe_gather_feature);
63
64 private:
65 int max_num_pillars_;
66 int max_num_points_per_pillar_;
67 int num_point_feature_;
68 int num_gather_point_feature_;
69 float pillar_x_size_;
70 float pillar_y_size_;
71 float min_x_range_;
72 float min_y_range_;
73 int num_threads_;
74};
75} // namespace lidar
76} // namespace perception
77} // namespace apollo
~PfeCuda()=default
Destroy the Pfe Cuda object
void GatherPointFeature(float *dev_pillar_point_feature, float *dev_num_points_per_pillar, float *dev_pillar_coors, float *dev_pfe_gather_feature)
gather the point feature
PfeCuda(int max_num_pillars, int max_num_points_per_pillar, int num_point_feature, int num_gather_point_feature, float pillar_x_size, float pillar_y_size, float min_x_range, float min_y_range, int num_threads)
Construct a new Pfe Cuda object
class register implement
Definition arena_queue.h:37
MACRO for CUDA codes