 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
28 #ifdef BUILD_SYCL_MODULE
35 #ifdef BUILD_CUDA_MODULE
36 void IndexAddCUDA_(int64_t dim,
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Dtype GetDtype() const
Definition: Tensor.h:1164
bool IsCUDA() const
Definition: Device.h:99
void IndexAdd_(int64_t dim, const Tensor &index, const Tensor &src, Tensor &dst)
Definition: IndexReduction.cpp:16
int64_t ByteSize() const
Definition: Dtype.h:59
Tensor Permute(const SizeVector &dims) const
Permute (dimension shuffle) the Tensor, returns a view.
Definition: Tensor.cpp:1028
CLOUDVIEWER_HOST_DEVICE char * GetInputPtr(int64_t workload_idx) const
Definition: AdvancedIndexing.h:167
void IndexAddCPU_(int64_t dim, const Tensor &index, const Tensor &src, Tensor &dst)
Definition: IndexReductionCPU.cpp:66
int64_t NumDims() const
Definition: Tensor.h:1172
void IndexSetSYCL(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSetSYCL.cpp:46
void IndexGetCPU(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSetCPU.cpp:42
static void CPUCopyObjectElementKernel(const void *src, void *dst, int64_t object_byte_size)
Definition: IndexGetSetCPU.cpp:34
static void LaunchAdvancedIndexerKernel(const AdvancedIndexer &indexer, const func_t &func)
Definition: IndexGetSetCPU.cpp:21
void IndexGetSYCL(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSetSYCL.cpp:18
Device GetDevice() const override
Definition: Tensor.cpp:1435
#define DISPATCH_DTYPE_TO_TEMPLATE_WITH_BOOL(DTYPE,...)
Definition: Dispatch.h:68
Definition: SizeVector.h:70
Indexer indexer
Definition: BinaryEWSYCL.cpp:30
#define LogError(...)
Definition: Logging.h:60
CLOUDVIEWER_HOST_DEVICE char * GetOutputPtr(int64_t workload_idx) const
Definition: AdvancedIndexing.h:175
static SYCLContext & GetInstance()
Get singleton instance.
Definition: SYCLContext.cpp:25
bool IsCPU() const
Definition: Device.h:95
void IndexAddSYCL_(int64_t dim, const Tensor &index, const Tensor &src, Tensor &dst)
Definition: IndexReductionSYCL.cpp:19
int64_t NumWorkloads() const
Definition: AdvancedIndexing.h:198
bool IsSYCL() const
Definition: Device.h:103
bool IsObject() const
Definition: Dtype.h:63
void ParallelFor(const Device &device, int64_t n, const func_t &func)
Definition: ParallelFor.h:111
static void CPUCopyElementKernel(const void *src, void *dst)
Definition: IndexGetSetCPU.cpp:30
sycl::queue GetDefaultQueue(const Device &device)
Get the default SYCL queue given an CloudViewer device.
Definition: SYCLContext.cpp:43
Definition: AdvancedIndexing.h:117
void IndexSetCPU(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSetCPU.cpp:62