ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
IndexReduction.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Logging.h>
11 
13 
14 namespace cloudViewer {
15 namespace core {
16 namespace kernel {
17 
18 void IndexAdd_(int64_t dim,
19  const Tensor& index,
20  const Tensor& src,
21  Tensor& dst);
22 
23 void IndexAddCPU_(int64_t dim,
24  const Tensor& index,
25  const Tensor& src,
26  Tensor& dst);
27 
28 #ifdef BUILD_SYCL_MODULE
29 void IndexAddSYCL_(int64_t dim,
30  const Tensor& index,
31  const Tensor& src,
32  Tensor& dst);
33 #endif
34 
35 #ifdef BUILD_CUDA_MODULE
36 void IndexAddCUDA_(int64_t dim,
37  const Tensor& index,
38  const Tensor& src,
39  Tensor& dst);
40 #endif
41 
42 } // namespace kernel
43 } // namespace core
44 } // namespace cloudViewer
void IndexAdd_(int64_t dim, const Tensor &index, const Tensor &src, Tensor &dst)
void IndexAddCPU_(int64_t dim, const Tensor &index, const Tensor &src, Tensor &dst)
void IndexAddSYCL_(int64_t dim, const Tensor &index, const Tensor &src, Tensor &dst)
Generic file read and write utility for python interface.