Skip to content

Commit

Permalink
Example: Adjust build rules for libraries that are now part of SPQR
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Sep 19, 2023
1 parent 53d4640 commit d7a1763
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions Example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ find_package ( SPEX 2.2.1 REQUIRED )
find_package ( SPQR 4.2.1 REQUIRED )
find_package ( UMFPACK 6.2.1 REQUIRED )

if ( TARGET CUDA::nvrtc )
# CHOLMOD and SPQR have been compiled with CUDA enabled.
# find_package ( CHOLMOD_CUDA 4.2.0 REQUIRED )
# find_package ( SPQR_CUDA 4.2.0 REQUIRED )
find_package ( SuiteSparse_GPURuntime 3.2.0 REQUIRED )
find_package ( GPUQREngine 3.2.0 REQUIRED )
endif ( )

# look for all external libaries:
find_package ( OpenMP REQUIRED )
find_package ( GMP 6.1.2 REQUIRED )
Expand Down Expand Up @@ -301,19 +293,6 @@ else ( )
target_link_libraries ( my_cxx_static PUBLIC SuiteSparse::CXSparse )
endif ( )

# GPUQREngine:
if ( ENABLE_CUDA )
target_link_libraries ( my PRIVATE SuiteSparse::GPUQREngine )
target_link_libraries ( my_cxx PRIVATE SuiteSparse::GPUQREngine )
if ( TARGET SuiteSparse::GPUQREngine_static )
target_link_libraries ( my_static PUBLIC SuiteSparse::GPUQREngine_static )
target_link_libraries ( my_cxx_static PUBLIC SuiteSparse::GPUQREngine_static )
else ( )
target_link_libraries ( my_static PUBLIC SuiteSparse::GPUQREngine )
target_link_libraries ( my_cxx_static PUBLIC SuiteSparse::GPUQREngine )
endif ( )
endif ( )

# GraphBLAS:
if ( TARGET SuiteSparse::GraphBLAS )
target_link_libraries ( my PRIVATE SuiteSparse::GraphBLAS )
Expand Down Expand Up @@ -420,19 +399,6 @@ else ( )
target_link_libraries ( my_cxx_static PUBLIC SuiteSparse::SuiteSparseConfig )
endif ( )

# GPURuntime:
if ( ENABLE_CUDA )
target_link_libraries ( my PRIVATE SuiteSparse::GPURuntime )
target_link_libraries ( my_cxx PRIVATE SuiteSparse::GPURuntime )
if ( TARGET SuiteSparse::GPURuntime_static )
target_link_libraries ( my_static PUBLIC SuiteSparse::GPURuntime_static )
target_link_libraries ( my_cxx_static PUBLIC SuiteSparse::GPURuntime_static )
else ( )
target_link_libraries ( my_static PUBLIC SuiteSparse::GPURuntime )
target_link_libraries ( my_cxx_static PUBLIC SuiteSparse::GPURuntime )
endif ( )
endif ( )

# UMFPACK:
target_link_libraries ( my PRIVATE SuiteSparse::UMFPACK )
target_link_libraries ( my_cxx PRIVATE SuiteSparse::UMFPACK )
Expand Down

0 comments on commit d7a1763

Please sign in to comment.