cov.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 Stats {
15 namespace opg {
16 
28 void cov(const raft::handle_t& handle,
29  Matrix::Data<float>& covar,
30  const std::vector<Matrix::Data<float>*>& data,
31  const Matrix::PartDescriptor& dataDesc,
33  bool sample,
34  cudaStream_t* streams,
35  int n_streams);
36 
37 void cov(const raft::handle_t& handle,
38  Matrix::Data<double>& covar,
39  const std::vector<Matrix::Data<double>*>& data,
40  const Matrix::PartDescriptor& dataDesc,
42  bool sample,
43  cudaStream_t* streams,
44  int n_streams);
45 
46 } // end namespace opg
47 } // end namespace Stats
48 } // end namespace MLCommon
void cov(const raft::handle_t &handle, Matrix::Data< float > &covar, const std::vector< Matrix::Data< float > * > &data, const Matrix::PartDescriptor &dataDesc, Matrix::Data< float > &mu, bool sample, cudaStream_t *streams, int n_streams)
performs MNMG covariance 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