Home
libcuml
cucim
cudf-java
cudf
cugraph
cuml
cuproj
cuspatial
cuvs
cuxfilter
dask-cuda
dask-cudf
kvikio
libcudf
libcuml
libcuproj
libcuspatial
libkvikio
librapidsmpf
librmm
libucxx
raft
rapids-cmake
rapidsmpf
rmm
ucxx
stable (26.02)
nightly (26.04)
stable (26.02)
legacy (25.12)
include
cuml
prims
opg
stats
mean.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
26
void
mean
(
const
raft::handle_t& handle,
27
Matrix::Data<float>
& out,
28
const
std::vector<
Matrix::Data<float>
*>& in,
29
const
Matrix::PartDescriptor
& inDesc,
30
cudaStream_t* streams,
31
int
n_streams);
32
33
void
mean
(
const
raft::handle_t& handle,
34
Matrix::Data<double>
& out,
35
const
std::vector<
Matrix::Data<double>
*>& in,
36
const
Matrix::PartDescriptor
& inDesc,
37
cudaStream_t* streams,
38
int
n_streams);
39
40
}
// end namespace opg
41
}
// end namespace Stats
42
}
// end namespace MLCommon
MLCommon::Stats::opg::mean
void mean(const raft::handle_t &handle, Matrix::Data< float > &out, const std::vector< Matrix::Data< float > * > &in, const Matrix::PartDescriptor &inDesc, cudaStream_t *streams, int n_streams)
performs MNMG mean calculation.
MLCommon
Definition:
comm_utils.h:11
MLCommon::Matrix::Data
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
MLCommon::Matrix::PartDescriptor
Definition:
part_descriptor.hpp:40
Generated by
1.9.1