utils.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 
6 #pragma once
7 
8 #include <cuml/common/logger.hpp>
9 
10 #include <raft/core/error.hpp>
11 #include <raft/util/cudart_utils.hpp>
12 
13 #include <cuda_runtime.h>
14 
15 #include <execinfo.h>
16 
17 #include <cstdio>
18 #include <sstream>
19 #include <stdexcept>
20 #include <string>
21 
22 #ifdef __CUDACC__
23 #define CUML_KERNEL __global__ static
24 #else
25 #define CUML_KERNEL static
26 #endif