Skip to content

Commit

Permalink
Update broadcast_matmul.cpp
Browse files Browse the repository at this point in the history
fix compile error
  • Loading branch information
L-Xiafeng authored Jun 27, 2023
1 parent d5f1a20 commit 28a2892
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions oneflow/core/ep/cuda/primitive/broadcast_matmul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ CublasScalarParameter GetCublasScalarParameter(Scalar scalar, cublasComputeType_
sp.s = scalar.Value<float>();
} else if (compute_type == CUBLAS_COMPUTE_16F) {
sp.h = static_cast<half>(scalar.Value<float>());
} else if (compute_type == CUDA_C_32F) {
const std::complex<float> cpp_value = scalar.Value<std::complex<float>>();
sp.c = cuComplex{cpp_value.real(), cpp_value.imag()};
} else if (compute_type == CUDA_C_64F) {
const std::complex<double> cpp_value = scalar.Value<std::complex<double>>();
sp.z = cuDoubleComplex{cpp_value.real(), cpp_value.imag()};
} else {
UNIMPLEMENTED();
}
Expand Down

0 comments on commit 28a2892

Please sign in to comment.