Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Pratik Nayak <pratikvn@protonmail.com>
  • Loading branch information
upsj and pratikvn authored Sep 19, 2022
1 parent 053fda1 commit 6a738ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cuda/matrix/csr_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ void conj_transpose(std::shared_ptr<const CudaExecutor> exec,
} else {
fallback_transpose(exec, orig, trans);
}
if (grid_size > 0) {
if (grid_size > 0 && is_complex<ValueType>()) {
kernel::conjugate<<<grid_size, block_size, 0, 0>>>(
trans->get_num_stored_elements(),
as_cuda_type(trans->get_values()));
Expand Down
2 changes: 1 addition & 1 deletion hip/matrix/csr_kernels.hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ void conj_transpose(std::shared_ptr<const HipExecutor> exec,
} else {
fallback_transpose(exec, orig, trans);
}
if (grid_size > 0) {
if (grid_size > 0 && is_complex<ValueType>()) {
hipLaunchKernelGGL(kernel::conjugate, grid_size, block_size, 0, 0,
trans->get_num_stored_elements(),
as_hip_type(trans->get_values()));
Expand Down

0 comments on commit 6a738ff

Please sign in to comment.