Skip to content

Commit

Permalink
[ROCm] Fix grid dimension issue introduced in d8909c9
Browse files Browse the repository at this point in the history
  • Loading branch information
hsharsha authored and Harsha HS committed Nov 11, 2024
1 parent b0aae98 commit dd86f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_command_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ absl::StatusOr<GraphNodeHandle> RocmCommandBuffer::CreateKernelNode(
static_cast<const RocmKernel&>(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;
Expand Down Expand Up @@ -319,7 +319,7 @@ absl::Status RocmCommandBuffer::UpdateKernelNode(
static_cast<const RocmKernel&>(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;
Expand Down

0 comments on commit dd86f21

Please sign in to comment.