nvtx.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2022, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 #include <raft/core/nvtx.hpp>
9 
10 namespace ML {
11 
17 [[deprecated("Use new raft::common::nvtx::push_range from <raft/core/nvtx.hpp>")]] inline void
18 PUSH_RANGE(const char* name, cudaStream_t stream)
19 {
20  raft::common::nvtx::push_range(name);
21 }
22 
27 [[deprecated("Use new raft::common::nvtx::pop_range from <raft/core/nvtx.hpp>")]] inline void
28 POP_RANGE(cudaStream_t stream)
29 {
30  raft::common::nvtx::pop_range();
31 }
32 
37 [[deprecated("Use new raft::common::nvtx::push_range from <raft/core/nvtx.hpp>")]] inline void
38 PUSH_RANGE(const char* name)
39 {
40  raft::common::nvtx::push_range(name);
41 }
42 
44 [[deprecated("Use new raft::common::nvtx::pop_range from <raft/core/nvtx.hpp>")]] inline void
46 {
47  raft::common::nvtx::pop_range();
48 }
49 
50 } // end namespace ML
Definition: dbscan.hpp:18
void POP_RANGE(cudaStream_t stream)
Synchronize CUDA stream and pop the latest nvtx range.
Definition: nvtx.hpp:28
void PUSH_RANGE(const char *name, cudaStream_t stream)
Synchronize CUDA stream and push a named nvtx range.
Definition: nvtx.hpp:18