rocprofiler-sdk/rccl/api_id.h Source File

rocprofiler-sdk/rccl/api_id.h Source File#

ROCprofiler-SDK developer API: rocprofiler-sdk/rccl/api_id.h Source File
ROCprofiler-SDK developer API 1.0.0
ROCm Profiling API and tools
api_id.h
1
2
3// MIT License
4//
5// Copyright (c) 2023-2025 Advanced Micro Devices, Inc. All rights reserved.
6//
7// Permission is hereby granted, free of charge, to any person obtaining a copy
8// of this software and associated documentation files (the "Software"), to deal
9// in the Software without restriction, including without limitation the rights
10// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11// copies of the Software, and to permit persons to whom the Software is
12// furnished to do so, subject to the following conditions:
13//
14// The above copyright notice and this permission notice shall be included in
15// all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23// THE SOFTWARE.
24
25#pragma once
26
27/**
28 * @brief ROCProfiler enumeration of RCCL API tracing operations
29 */
30typedef enum rocprofiler_rccl_api_id_t // NOLINT(performance-enum-size)
31{
32 ROCPROFILER_RCCL_API_ID_NONE = -1,
33
34 ROCPROFILER_RCCL_API_ID_ncclAllGather = 0,
35 ROCPROFILER_RCCL_API_ID_ncclAllReduce,
36 ROCPROFILER_RCCL_API_ID_ncclAllToAll,
37 ROCPROFILER_RCCL_API_ID_ncclAllToAllv,
38 ROCPROFILER_RCCL_API_ID_ncclBroadcast,
39 ROCPROFILER_RCCL_API_ID_ncclGather,
40 ROCPROFILER_RCCL_API_ID_ncclReduce,
41 ROCPROFILER_RCCL_API_ID_ncclReduceScatter,
42 ROCPROFILER_RCCL_API_ID_ncclScatter,
43 ROCPROFILER_RCCL_API_ID_ncclSend,
44 ROCPROFILER_RCCL_API_ID_ncclRecv,
45 ROCPROFILER_RCCL_API_ID_ncclRedOpCreatePreMulSum,
46 ROCPROFILER_RCCL_API_ID_ncclRedOpDestroy,
47 ROCPROFILER_RCCL_API_ID_ncclGroupStart,
48 ROCPROFILER_RCCL_API_ID_ncclGroupEnd,
49 ROCPROFILER_RCCL_API_ID_ncclGetVersion,
50 ROCPROFILER_RCCL_API_ID_ncclGetUniqueId,
51 ROCPROFILER_RCCL_API_ID_ncclCommInitRank,
52 ROCPROFILER_RCCL_API_ID_ncclCommInitAll,
53 ROCPROFILER_RCCL_API_ID_ncclCommInitRankConfig,
54 ROCPROFILER_RCCL_API_ID_ncclCommFinalize,
55 ROCPROFILER_RCCL_API_ID_ncclCommDestroy,
56 ROCPROFILER_RCCL_API_ID_ncclCommAbort,
57 ROCPROFILER_RCCL_API_ID_ncclCommSplit,
58 ROCPROFILER_RCCL_API_ID_ncclGetErrorString,
59 ROCPROFILER_RCCL_API_ID_ncclGetLastError,
60 ROCPROFILER_RCCL_API_ID_ncclCommGetAsyncError,
61 ROCPROFILER_RCCL_API_ID_ncclCommCount,
62 ROCPROFILER_RCCL_API_ID_ncclCommCuDevice,
63 ROCPROFILER_RCCL_API_ID_ncclCommUserRank,
64 ROCPROFILER_RCCL_API_ID_ncclMemAlloc,
65 ROCPROFILER_RCCL_API_ID_ncclMemFree,
66 ROCPROFILER_RCCL_API_ID_mscclLoadAlgo,
67 ROCPROFILER_RCCL_API_ID_mscclRunAlgo,
68 ROCPROFILER_RCCL_API_ID_mscclUnloadAlgo,
69 ROCPROFILER_RCCL_API_ID_ncclCommRegister,
70 ROCPROFILER_RCCL_API_ID_ncclCommDeregister,
71#if RCCL_API_TRACE_VERSION_PATCH >= 1
72 ROCPROFILER_RCCL_API_ID_ncclAllReduceWithBias,
73#endif
74#if RCCL_API_TRACE_VERSION_PATCH >= 2
75 ROCPROFILER_RCCL_API_ID_ncclCommShrink,
76 ROCPROFILER_RCCL_API_ID_ncclCommWindowRegister,
77 ROCPROFILER_RCCL_API_ID_ncclCommWindowDeregister,
78#endif
79 ROCPROFILER_RCCL_API_ID_LAST,
80} rocprofiler_rccl_api_id_t;