lstsq.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
6 
7 #include "../matrix/data.hpp"
8 #include "../matrix/part_descriptor.hpp"
9 
10 #include <raft/core/handle.hpp>
11 
12 namespace MLCommon {
13 namespace LinAlg {
14 namespace opg {
15 
19 void lstsqEig(const raft::handle_t& handle,
20  const std::vector<Matrix::Data<float>*>& A,
21  const Matrix::PartDescriptor& ADesc,
22  const std::vector<Matrix::Data<float>*>& b,
23  float* w,
24  cudaStream_t* streams,
25  int n_streams);
26 
27 void lstsqEig(const raft::handle_t& handle,
28  const std::vector<Matrix::Data<double>*>& A,
29  const Matrix::PartDescriptor& ADesc,
30  const std::vector<Matrix::Data<double>*>& b,
31  double* w,
32  cudaStream_t* streams,
33  int n_streams);
34 
35 } // end namespace opg
36 } // end namespace LinAlg
37 } // end namespace MLCommon
void lstsqEig(const raft::handle_t &handle, const std::vector< Matrix::Data< float > * > &A, const Matrix::PartDescriptor &ADesc, const std::vector< Matrix::Data< float > * > &b, float *w, cudaStream_t *streams, int n_streams)
performs MNMG Least squares calculation.
Definition: comm_utils.h:11
This is a helper wrapper around the multi-gpu data blocks owned by a worker. It's design is NOT final...
Definition: data.hpp:18
Definition: part_descriptor.hpp:40