Skip to content

Commit 763efa9

Browse files
MythreyaKvenkat1361
authored andcommitted
[rocprofiler-sdk] Add hip stream enum and update ops
Add rocprofiler_hip_stream_operation_t to enum_string utils, and update some ops as operations.
1 parent 94a4595 commit 763efa9

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

projects/rocprofiler-sdk/source/include/rocprofiler-sdk/cxx/enum_string.hpp

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,22 +1374,27 @@ ROCPROFILER_ENUM_INFO(rocprofiler_code_object_operation_t,
13741374
ROCPROFILER_CODE_OBJECT_NONE,
13751375
ROCPROFILER_CODE_OBJECT_LAST,
13761376
false,
1377-
not_operation);
1377+
is_operation);
1378+
ROCPROFILER_ENUM_INFO(rocprofiler_hip_stream_operation_t,
1379+
ROCPROFILER_HIP_STREAM_NONE,
1380+
ROCPROFILER_HIP_STREAM_LAST,
1381+
false,
1382+
is_operation);
13781383
ROCPROFILER_ENUM_INFO(rocprofiler_memory_copy_operation_t,
13791384
ROCPROFILER_MEMORY_COPY_NONE,
13801385
ROCPROFILER_MEMORY_COPY_LAST,
13811386
false,
1382-
not_operation);
1387+
is_operation);
13831388
ROCPROFILER_ENUM_INFO(rocprofiler_memory_allocation_operation_t,
13841389
ROCPROFILER_MEMORY_ALLOCATION_NONE,
13851390
ROCPROFILER_MEMORY_ALLOCATION_LAST,
13861391
false,
1387-
not_operation);
1392+
is_operation);
13881393
ROCPROFILER_ENUM_INFO(rocprofiler_kernel_dispatch_operation_t,
13891394
ROCPROFILER_KERNEL_DISPATCH_NONE,
13901395
ROCPROFILER_KERNEL_DISPATCH_LAST,
13911396
false,
1392-
not_operation);
1397+
is_operation);
13931398
ROCPROFILER_ENUM_INFO(rocprofiler_pc_sampling_method_t,
13941399
ROCPROFILER_PC_SAMPLING_METHOD_NONE,
13951400
ROCPROFILER_PC_SAMPLING_METHOD_LAST,
@@ -1682,6 +1687,14 @@ ROCPROFILER_ENUM_LABEL(ROCPROFILER_CODE_OBJECT_DEVICE_KERNEL_SYMBOL_REGISTER);
16821687
ROCPROFILER_ENUM_LABEL(ROCPROFILER_CODE_OBJECT_HOST_KERNEL_SYMBOL_REGISTER);
16831688
static_assert(ROCPROFILER_CODE_OBJECT_LAST == 4);
16841689

1690+
// rocprofiler_hip_stream_operation_t
1691+
ROCPROFILER_ENUM_LABEL(ROCPROFILER_HIP_STREAM_NONE);
1692+
ROCPROFILER_ENUM_LABEL(ROCPROFILER_HIP_STREAM_CREATE);
1693+
ROCPROFILER_ENUM_LABEL(ROCPROFILER_HIP_STREAM_DESTROY);
1694+
ROCPROFILER_ENUM_LABEL(ROCPROFILER_HIP_STREAM_SET);
1695+
ROCPROFILER_ENUM_LABEL(ROCPROFILER_HIP_STREAM_LAST);
1696+
static_assert(ROCPROFILER_CODE_OBJECT_LAST == 4);
1697+
16851698
// rocprofiler_memory_copy_operation_t
16861699
ROCPROFILER_ENUM_LABEL(ROCPROFILER_MEMORY_COPY_NONE);
16871700
ROCPROFILER_ENUM_LABEL(ROCPROFILER_MEMORY_COPY_HOST_TO_HOST);

projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/tests/enum_string.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ TEST(enum_string, fwd_h)
115115
TEST_STR(ROCPROFILER_BUFFER_TRACING_ROCDECODE_API);
116116
TEST_STR(ROCPROFILER_BUFFER_TRACING_KFD_QUEUE);
117117

118+
// rocprofiler_hip_stream_operation_t
119+
TEST_STR(ROCPROFILER_HIP_STREAM_NONE);
120+
TEST_STR(ROCPROFILER_HIP_STREAM_DESTROY);
121+
118122
// rocprofiler_code_object_operation_t
119123
TEST_STR(ROCPROFILER_CODE_OBJECT_NONE);
120124
TEST_STR(ROCPROFILER_CODE_OBJECT_LOAD);

0 commit comments

Comments
 (0)