From 133834335db609a9122f40630d4bf35e504e1e83 Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Tue, 17 Jun 2025 09:57:27 -0400 Subject: [PATCH] Unhandled enum in switch statement (#247) Signed-off-by: David Galiffi [ROCm/rocprofiler-systems commit: 244c193a573b58499a9b6bdba934b0b31e1b1522] --- .../source/lib/rocprof-sys/library/rocprofiler-sdk.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk.cpp b/projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk.cpp index ffbe9592b3..51c9d6e570 100644 --- a/projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk.cpp +++ b/projects/rocprofiler-systems/source/lib/rocprof-sys/library/rocprofiler-sdk.cpp @@ -555,6 +555,9 @@ tool_tracing_callback(rocprofiler_callback_tracing_record_t record, case ROCPROFILER_CALLBACK_TRACING_OMPT: case ROCPROFILER_CALLBACK_TRACING_MEMORY_ALLOCATION: case ROCPROFILER_CALLBACK_TRACING_RUNTIME_INITIALIZATION: +#endif +#if(ROCPROFILER_VERSION >= 700) + case ROCPROFILER_CALLBACK_TRACING_HIP_STREAM: #endif { ROCPROFSYS_CI_ABORT(true, "unhandled callback record kind: %i\n", @@ -652,6 +655,9 @@ tool_tracing_callback(rocprofiler_callback_tracing_record_t record, case ROCPROFILER_CALLBACK_TRACING_OMPT: case ROCPROFILER_CALLBACK_TRACING_MEMORY_ALLOCATION: case ROCPROFILER_CALLBACK_TRACING_RUNTIME_INITIALIZATION: +#endif +#if(ROCPROFILER_VERSION >= 700) + case ROCPROFILER_CALLBACK_TRACING_HIP_STREAM: #endif { ROCPROFSYS_CI_ABORT(true, "unhandled callback record kind: %i\n",