Skip to content

Commit

Permalink
HipGraph: Add a default catch for unknown node types (#2794)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfurmanek authored Dec 19, 2024
1 parent 3c18b05 commit cf4d244
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions third_party/xla/xla/stream_executor/rocm/rocm_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit cf4d244

Please sign in to comment.