Skip to content

Commit

Permalink
[ROCm] SWDEV-504746 - Fix build error
Browse files Browse the repository at this point in the history
HIP adds new enum hipGraphNodeTypeBatchMemOp in hipGraphNodeType.
The switch case doesn't handle hipGraphNodeTypeBatchMemOp causing build
failure in TensorFlow.
  • Loading branch information
rakesroy committed Dec 17, 2024
1 parent 8d53a6c commit caefc79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xla/stream_executor/rocm/rocm_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,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 caefc79

Please sign in to comment.