Skip to content

Commit 24e222f

Browse files
authored
Merge branch 'develop' into refactor/lapack-wrapper
2 parents 82222db + 57ea55d commit 24e222f

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,12 @@ else()
481481
find_package(Lapack REQUIRED)
482482
include_directories(${FFTW3_INCLUDE_DIRS})
483483
list(APPEND math_libs FFTW3::FFTW3 LAPACK::LAPACK BLAS::BLAS)
484+
if(USE_DSP)
485+
target_link_libraries(${ABACUS_BIN_NAME} ${SCALAPACK_LIBRARY_DIR})
486+
else()
484487
find_package(ScaLAPACK REQUIRED)
485488
list(APPEND math_libs ScaLAPACK::ScaLAPACK)
489+
endif()
486490
if(USE_OPENMP)
487491
list(APPEND math_libs FFTW3::FFTW3_OMP)
488492
endif()

source/source_base/module_fft/fft_dsp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "fft_dsp.h"
22

33
#include "source_base/global_variable.h"
4+
#include "source_base/global_function.h"
45

56
#include <iostream>
67
#include <string.h>

source/source_pw/module_pwdft/VSep_in_pw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ double shell_cut(double r, double r_in, double r_out, double r_power)
4646
}
4747
} // namespace
4848

49-
VSep::VSep() noexcept = default;
49+
VSep::VSep() = default;
5050

51-
VSep::~VSep() noexcept = default;
51+
VSep::~VSep() = default;
5252

5353
void VSep::init_vsep(const ModulePW::PW_Basis& rho_basis, const Sep_Cell& sep_cell)
5454
{

source/source_pw/module_pwdft/VSep_in_pw.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
class VSep
1111
{
1212
public:
13-
VSep() noexcept;
14-
~VSep() noexcept;
13+
VSep();
14+
~VSep();
1515

1616
void init_vsep(const ModulePW::PW_Basis& rho_basis, const Sep_Cell& sep_cell);
1717
void generate_vsep_r(const ModulePW::PW_Basis& rho_basis, const ModuleBase::ComplexMatrix& sf_in, const Sep_Cell& sep_cell);

source/source_pw/module_pwdft/operator_pw/veff_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void Veff<OperatorPW<T, Device>>::act(
5858
#ifdef __DSP
5959
if (npol == 1)
6060
{
61-
ModulePW::FFT_Guard guard(wfcpw->fft_bundle);
61+
ModuleBase::FFT_Guard guard(wfcpw->fft_bundle);
6262
for (int ib = 0; ib < nbands; ib += npol)
6363
{
6464
wfcpw->convolution(this->ctx,

0 commit comments

Comments
 (0)