pcod-common v1.0.0
Shared preprocessing and postprocessing for point-cloud object detection
Loading...
Searching...
No Matches
pillar_preprocess_cuda_stub.cpp
Go to the documentation of this file.
1// Copyright Institute for Automotive Engineering (ika), RWTH Aachen University
2// SPDX-License-Identifier: Apache-2.0
3
5
6namespace pcod_common {
7
9
10bool HasCudaPillarPreprocessSupport() { return false; }
11
13
15
17
19
20bool PillarPreprocessCudaContext::isAvailable() const { return impl_ != nullptr && HasCudaPillarPreprocessSupport(); }
21
23 std::int32_t num_points,
24 const PillarPreprocessCudaConfig& config,
25 const PillarPreprocessCudaOutputs& outputs,
26 std::string* error_message) {
27 (void)points;
28 (void)num_points;
29 (void)config;
30 (void)outputs;
31 if (error_message != nullptr) {
32 *error_message =
33 impl_ == nullptr ? "CUDA preprocessing context is not initialized" : "CUDA preprocessing is not available in this build";
34 }
35 return false;
36}
37
39 std::int32_t num_points,
40 const PillarPreprocessCudaConfig& config,
42 std::string* error_message) {
43 (void)points;
44 (void)num_points;
45 (void)config;
46 (void)outputs;
47 if (error_message != nullptr) {
48 *error_message =
49 impl_ == nullptr ? "CUDA preprocessing context is not initialized" : "CUDA preprocessing is not available in this build";
50 }
51 return false;
52}
53
54} // namespace pcod_common
bool runToDevice(const PillarPreprocessPoint *points, std::int32_t num_points, const PillarPreprocessCudaConfig &config, const PillarPreprocessCudaDeviceOutputs &outputs, std::string *error_message)
bool run(const PillarPreprocessPoint *points, std::int32_t num_points, const PillarPreprocessCudaConfig &config, const PillarPreprocessCudaOutputs &outputs, std::string *error_message)