norm.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/comms.hpp>
11 #include <raft/core/handle.hpp>
12 
13 namespace MLCommon {
14 namespace LinAlg {
15 namespace opg {
16 
20 void colNorm2(const raft::handle_t& handle,
22  const std::vector<Matrix::Data<double>*>& in,
23  const Matrix::PartDescriptor& inDesc,
24  cudaStream_t* streams,
25  int n_streams);
26 
27 void colNorm2(const raft::handle_t& handle,
29  const std::vector<Matrix::Data<float>*>& in,
30  const Matrix::PartDescriptor& inDesc,
31  cudaStream_t* streams,
32  int n_streams);
33 
34 void colNorm2NoSeq(const raft::handle_t& handle,
36  const std::vector<Matrix::Data<double>*>& in,
37  const Matrix::PartDescriptor& inDesc,
38  cudaStream_t* streams,
39  int n_streams);
40 
41 void colNorm2NoSeq(const raft::handle_t& handle,
43  const std::vector<Matrix::Data<float>*>& in,
44  const Matrix::PartDescriptor& inDesc,
45  cudaStream_t* streams,
46  int n_streams);
47 
48 } // end namespace opg
49 } // end namespace LinAlg
50 } // end namespace MLCommon
void colNorm2NoSeq(const raft::handle_t &handle, Matrix::Data< double > &out, const std::vector< Matrix::Data< double > * > &in, const Matrix::PartDescriptor &inDesc, cudaStream_t *streams, int n_streams)
void colNorm2(const raft::handle_t &handle, Matrix::Data< double > &out, const std::vector< Matrix::Data< double > * > &in, const Matrix::PartDescriptor &inDesc, 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