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 (26.02)
nightly (26.02)
stable (25.12)
legacy (25.10)
include
cuml
fil
detail
raft_proto
detail
cuda_check
gpu.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/cuda_check/base.hpp
>
7
#include <
cuml/fil/detail/raft_proto/device_type.hpp
>
8
#include <
cuml/fil/detail/raft_proto/exceptions.hpp
>
9
10
#include <cuda_runtime_api.h>
11
namespace
raft_proto
{
12
namespace
detail {
13
14
template
<>
15
inline
void
cuda_check<device_type::gpu, cudaError_t>(cudaError_t
const
& err) noexcept(
false
)
16
{
17
if
(err != cudaSuccess) {
18
cudaGetLastError();
19
throw
bad_cuda_call
(cudaGetErrorString(err));
20
}
21
}
22
23
}
// namespace detail
24
}
// namespace raft_proto
device_type.hpp
exceptions.hpp
base.hpp
raft_proto
Definition:
buffer.hpp:24
raft_proto::bad_cuda_call
Definition:
exceptions.hpp:9
Generated by
1.9.1