Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Critsium-xy committed Oct 22, 2024
1 parent fab6487 commit 400aa98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/module_base/blas_connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ float BlasConnector::dot( const int n, const float *X, const int incX, const flo
{
if (device_type == base_device::AbacusDevice_t::CpuDevice) {
return sdot_(&n, X, &incX, Y, &incY);
return sdot_(&n, X, &incX, Y, &incY);
}
}

double BlasConnector::dot( const int n, const double *X, const int incX, const double *Y, const int incY, base_device::AbacusDevice_t device_type)
{
if (device_type == base_device::AbacusDevice_t::CpuDevice) {
return ddot_(&n, X, &incX, Y, &incY);
return ddot_(&n, X, &incX, Y, &incY);
}
}

Expand Down Expand Up @@ -184,6 +186,7 @@ float BlasConnector::nrm2( const int n, const float *X, const int incX, base_dev
{
if (device_type == base_device::AbacusDevice_t::CpuDevice) {
return snrm2_( &n, X, &incX );
return snrm2_( &n, X, &incX );
}
}

Expand All @@ -192,6 +195,7 @@ double BlasConnector::nrm2( const int n, const double *X, const int incX, base_d
{
if (device_type == base_device::AbacusDevice_t::CpuDevice) {
return dnrm2_( &n, X, &incX );
return dnrm2_( &n, X, &incX );
}
}

Expand All @@ -200,6 +204,7 @@ double BlasConnector::nrm2( const int n, const std::complex<double> *X, const in
{
if (device_type == base_device::AbacusDevice_t::CpuDevice) {
return dznrm2_( &n, X, &incX );
return dznrm2_( &n, X, &incX );
}
}

Expand Down

0 comments on commit 400aa98

Please sign in to comment.