ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LinalgHeadersCPU.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 // This file contains headers for BLAS/LAPACK implementations. Currently we
9 // support int64_t interface of OpenBLAS or Intel MKL.
10 //
11 // For developers, please make sure that this file is not ultimately included in
12 // CloudViewer.h.
13 
14 #pragma once
15 
16 #ifdef USE_BLAS
17 #define CLOUDVIEWER_CPU_LINALG_INT int32_t
18 #define lapack_int int32_t
19 #include <cblas.h>
20 #include <lapacke.h>
21 #else
22 #include <mkl.h>
23 #define CLOUDVIEWER_CPU_LINALG_INT MKL_INT
24 #endif
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
CUDAUtils.h
Common CUDA utilities.
cloudViewer::core::LeastSquaresCUDA
void LeastSquaresCUDA(void *A_data, void *B_data, int64_t m, int64_t n, int64_t k, Dtype dtype, const Device &device)
Definition: LeastSquaresCUDA.cpp:24
Runtime::GetInstance
ccGuiPythonInstance * GetInstance() noexcept
Definition: Runtime.cpp:72
LapackWrapper.h
cloudViewer::core::LeastSquaresCPU
void LeastSquaresCPU(void *A_data, void *B_data, int64_t m, int64_t n, int64_t k, Dtype dtype, const Device &device)
Definition: LeastSquaresCPU.cpp:15
SYCLContext.h
SYCL queue manager.
cloudViewer::core::Dtype
Definition: Dtype.h:21
cloudViewer::core::Blob::GetDataPtr
void * GetDataPtr()
Definition: Blob.h:75
cloudViewer::core::OPEN3D_LAPACK_CHECK
void OPEN3D_LAPACK_CHECK(CLOUDVIEWER_CPU_LINALG_INT info, const std::string &msg)
Definition: LinalgUtils.h:36
Blob.h
cloudViewer::core::Device
Definition: Device.h:18
core
DISPATCH_LINALG_DTYPE_TO_TEMPLATE
#define DISPATCH_LINALG_DTYPE_TO_TEMPLATE(DTYPE,...)
Definition: LinalgUtils.h:23
LinalgUtils.h
cloudViewer::core::LeastSquaresSYCL
void LeastSquaresSYCL(void *A_data, void *B_data, int64_t m, int64_t n, int64_t k, Dtype dtype, const Device &device)
Definition: LeastSquaresSYCL.cpp:19
cloudViewer::core::sy::SYCLContext::GetInstance
static SYCLContext & GetInstance()
Get singleton instance.
Definition: SYCLContext.cpp:25
cloudViewer::core::Blob
Definition: Blob.h:38
BlasWrapper.h
LeastSquares.h
cloudViewer::core::sy::SYCLContext::GetDefaultQueue
sycl::queue GetDefaultQueue(const Device &device)
Get the default SYCL queue given an CloudViewer device.
Definition: SYCLContext.cpp:43