Find{BLAS,LAPACK}: Only search for the needed components of NVPL

This commit is contained in:
Ye Luo
2026-09-07 12:37:49 -04:00
committed by Brad King
parent 9e593fd2c0
commit cdf4234bc4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1378,8 +1378,8 @@ if(BLA_VENDOR STREQUAL "NVPL" OR BLA_VENDOR STREQUAL "All")
endif()
if(NOT BLAS_LIBRARIES)
find_package(nvpl QUIET)
if(nvpl_FOUND)
find_package(nvpl QUIET COMPONENTS blas)
if(nvpl_blas_FOUND)
foreach(_nvpl_thread IN LISTS _blas_nvpl_threads)
foreach(_nvpl_int IN LISTS _blas_nvpl_ints)
+2 -2
View File
@@ -750,8 +750,8 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
list(APPEND _lapack_nvpl_threads "_seq")
endif()
find_package(nvpl QUIET)
if(nvpl_FOUND)
find_package(nvpl QUIET COMPONENTS lapack)
if(nvpl_lapack_FOUND)
foreach(_nvpl_thread IN LISTS _lapack_nvpl_threads)
foreach(_nvpl_int IN LISTS _lapack_nvpl_ints)