diff --git a/xla/stream_executor/rocm/rocm_command_buffer.cc b/xla/stream_executor/rocm/rocm_command_buffer.cc index 0678bb91a3dbe..e161fa60179a3 100644 --- a/xla/stream_executor/rocm/rocm_command_buffer.cc +++ b/xla/stream_executor/rocm/rocm_command_buffer.cc @@ -273,7 +273,7 @@ absl::StatusOr RocmCommandBuffer::CreateKernelNode( static_cast(kernel).gpu_function(); params.func = function; params.gridDim.x = blocks.x; - params.gridDim.z = blocks.y; + params.gridDim.y = blocks.y; params.gridDim.z = blocks.z; params.blockDim.x = threads.x; params.blockDim.y = threads.y; @@ -319,7 +319,7 @@ absl::Status RocmCommandBuffer::UpdateKernelNode( static_cast(kernel).gpu_function(); params.func = function; params.gridDim.x = blocks.x; - params.gridDim.z = blocks.y; + params.gridDim.y = blocks.y; params.gridDim.z = blocks.z; params.blockDim.x = threads.x; params.blockDim.y = threads.y;