Skip to content

Commit 0e41185

Browse files
committed
Fix compiling error
1 parent 55461ee commit 0e41185

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

source/module_base/blas_connector.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -214,22 +214,6 @@ double BlasConnector::dot( const int n, const double *X, const int incX, const d
214214
return ddot_(&n, X, &incX, Y, &incY);
215215
}
216216

217-
double BlasConnector::dot( const int n, const double *X, const int incX, const double *Y, const int incY, base_device::AbacusDevice_t device_type)
218-
{
219-
if (device_type == base_device::AbacusDevice_t::CpuDevice) {
220-
return ddot_(&n, X, &incX, Y, &incY);
221-
}
222-
else if (device_type == base_device::AbacusDevice_t::GpuDevice){
223-
#ifdef __CUDA
224-
double result = 0.0;
225-
cublasErrcheck(cublasDdot(BlasUtils::cublas_handle, n, X, incX, Y, incY, &result));
226-
return result;
227-
#endif
228-
}
229-
return ddot_(&n, X, &incX, Y, &incY);
230-
}
231-
232-
233217
// C = a * A.? * B.? + b * C
234218
// Row-Major part
235219
void BlasConnector::gemm(const char transa, const char transb, const int m, const int n, const int k,

0 commit comments

Comments
 (0)