Skip to content

Commit

Permalink
Merge pull request #441 from DrTimothyAldenDavis/dev2
Browse files Browse the repository at this point in the history
revert KLU, SPQR, UMFPACK, GPUQREngine; update Example
  • Loading branch information
DrTimothyAldenDavis authored Oct 16, 2023
2 parents 0ee99a7 + 29f46e4 commit f98e0f5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
12 changes: 5 additions & 7 deletions Example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
cmake_minimum_required ( VERSION 3.20 )

# cmake inserts the date and version number into Include/my.h:
set ( MY_DATE "Sept 18, 2023" )
set ( MY_DATE "Oct 16, 2023" )
set ( MY_VERSION_MAJOR 1 )
set ( MY_VERSION_MINOR 4 )
set ( MY_VERSION_PATCH 1 )
set ( MY_VERSION_PATCH 2 )

message ( STATUS "Building MY library version: v"
${MY_VERSION_MAJOR}.
Expand Down Expand Up @@ -61,7 +61,7 @@ project ( my
#-------------------------------------------------------------------------------

# look for all SuiteSparse packages:
find_package ( SuiteSparse_config 7.2.1 REQUIRED )
find_package ( SuiteSparse_config 7.2.2 REQUIRED )
find_package ( AMD 3.2.1 REQUIRED )
find_package ( BTF 2.2.1 REQUIRED )
find_package ( CAMD 3.2.1 REQUIRED )
Expand All @@ -81,10 +81,8 @@ 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.2 REQUIRED )
# find_package ( SPQR_CUDA 4.2.0 REQUIRED )
find_package ( SuiteSparse_GPURuntime 3.2.0 REQUIRED )
find_package ( GPUQREngine 3.2.0 REQUIRED )
find_package ( SuiteSparse_GPURuntime 3.2.1 REQUIRED )
find_package ( GPUQREngine 3.2.1 REQUIRED )
endif ( )

# look for all external libaries:
Expand Down
8 changes: 4 additions & 4 deletions GPUQREngine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ if ( DEMO AND DEMO_OK )
find_package ( CCOLAMD 3.2.0 )
endif ( )

find_package ( CHOLMOD 4.2.2
find_package ( CHOLMOD 4.2.0
PATHS ${CMAKE_SOURCE_DIR}/../CHOLMOD/build NO_DEFAULT_PATH )
if ( NOT TARGET SuiteSparse::CHOLMOD )
find_package ( CHOLMOD 4.2.2 )
find_package ( CHOLMOD 4.2.0 )
endif ( )

find_package ( CHOLMOD_CUDA 4.2.2
find_package ( CHOLMOD_CUDA 4.2.0
PATHS ${CMAKE_SOURCE_DIR}/../CHOLMOD/build NO_DEFAULT_PATH )
if ( NOT TARGET SuiteSparse::CHOLMOD_CUDA )
find_package ( CHOLMOD_CUDA 4.2.2 )
find_package ( CHOLMOD_CUDA 4.2.0 )
endif ( )
endif ( )

Expand Down
4 changes: 2 additions & 2 deletions KLU/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ option ( NCHOLMOD "ON: do not use CHOLMOD. OFF (default): use CHOLMOD" off )

if ( NOT NCHOLMOD )
# look for CHOLMOD (optional fill-reducing orderings)
find_package ( CHOLMOD 4.2.2
find_package ( CHOLMOD 4.2.0
PATHS ${CMAKE_SOURCE_DIR}/../CHOLMOD/build NO_DEFAULT_PATH )
if ( NOT TARGET SuiteSparse::CHOLMOD )
find_package ( CHOLMOD 4.2.2 )
find_package ( CHOLMOD 4.2.0 )
endif ( )

# look for CHOLMOD's dependencies: AMD and COLAMD are required. CAMD and
Expand Down
8 changes: 4 additions & 4 deletions SPQR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ endif ( )

# It would be nice if just checking for CHOLMOD would automatically pull in
# the targets for its dependencies.
find_package ( CHOLMOD 4.2.2
find_package ( CHOLMOD 4.2.0
PATHS ${CMAKE_SOURCE_DIR}/../CHOLMOD/build NO_DEFAULT_PATH )
if ( NOT TARGET SuiteSparse::CHOLMOD )
find_package ( CHOLMOD 4.2.2 REQUIRED )
find_package ( CHOLMOD 4.2.0 REQUIRED )
endif ( )

# look for CHOLMOD's dependencies: AMD and COLAMD are required. CAMD and
Expand Down Expand Up @@ -107,10 +107,10 @@ if ( SUITESPARSE_CUDA )
find_package ( GPUQREngine 3.2.0 REQUIRED )
endif ( )

find_package ( CHOLMOD_CUDA 4.2.2
find_package ( CHOLMOD_CUDA 4.2.0
PATHS ${CMAKE_SOURCE_DIR}/../CHOLMOD/build NO_DEFAULT_PATH )
if ( NOT TARGET SuiteSparse::CHOLMOD_CUDA )
find_package ( CHOLMOD_CUDA 4.2.2 REQUIRED )
find_package ( CHOLMOD_CUDA 4.2.0 REQUIRED )
endif ( )
endif ( )

Expand Down
4 changes: 2 additions & 2 deletions UMFPACK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ option ( NCHOLMOD "ON: do not use CHOLMOD. OFF (default): use CHOLMOD" off )

if ( NOT NCHOLMOD )
# look for CHOLMOD (optional fill-reducing orderings)
find_package ( CHOLMOD 4.2.2
find_package ( CHOLMOD 4.2.0
PATHS ${CMAKE_SOURCE_DIR}/../CHOLMOD/build NO_DEFAULT_PATH )
if ( NOT TARGET SuiteSparse::CHOLMOD )
find_package ( CHOLMOD 4.2.2 )
find_package ( CHOLMOD 4.2.0 )
endif ( )

# look for CHOLMOD's dependencies: AMD and COLAMD are required. CAMD and
Expand Down

0 comments on commit f98e0f5

Please sign in to comment.