Skip to content

Commit b3f57e1

Browse files
committed
Optimize Compilation experience on DSP
1 parent f7de476 commit b3f57e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
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()

0 commit comments

Comments
 (0)