From cf4d244f807e62dcc0d594b16f47b63280c1313d Mon Sep 17 00:00:00 2001 From: jayfurmanek Date: Thu, 19 Dec 2024 01:11:29 -0600 Subject: [PATCH] HipGraph: Add a default catch for unknown node types (#2794) --- third_party/xla/xla/stream_executor/rocm/rocm_driver.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/xla/xla/stream_executor/rocm/rocm_driver.cc b/third_party/xla/xla/stream_executor/rocm/rocm_driver.cc index d395c1bd50fa21..73e28070f8ffa5 100644 --- a/third_party/xla/xla/stream_executor/rocm/rocm_driver.cc +++ b/third_party/xla/xla/stream_executor/rocm/rocm_driver.cc @@ -687,6 +687,8 @@ GpuDriver::GraphNodeGetType(hipGraphNode_t node) { return GraphNodeType::kMemAlloc; case hipGraphNodeTypeMemFree: return GraphNodeType::kMemFree; + default: + return absl::InternalError("Invalid HIP graph node type"); } return absl::InternalError("Invalid HIP graph node type");