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
nightly (25.12)
nightly (25.12)
stable (25.10)
legacy (25.08)
include
cuml
fil
detail
raft_proto
detail
host_only_throw
cpu.hpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION.
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
#pragma once
6
#include <
cuml/fil/detail/raft_proto/detail/host_only_throw/base.hpp
>
7
#include <
cuml/fil/detail/raft_proto/gpu_support.hpp
>
8
9
namespace
raft_proto
{
10
namespace
detail {
11
template
<
typename
T>
12
struct
host_only_throw
<T, true> {
13
template
<
typename
... Args>
14
host_only_throw
(Args&&... args) noexcept(
false
)
15
{
16
throw
T{std::forward<Args>(args)...};
17
}
18
};
19
}
// namespace detail
20
}
// namespace raft_proto
gpu_support.hpp
base.hpp
raft_proto
Definition:
buffer.hpp:24
raft_proto::detail::host_only_throw< T, true >::host_only_throw
host_only_throw(Args &&... args) noexcept(false)
Definition:
cpu.hpp:14
raft_proto::detail::host_only_throw
Definition:
base.hpp:11
Generated by
1.9.1