Skip to content

Commit eb28091

Browse files
ParU: failed to compile if CUDA enabled in CHOLMOD; need to set ENABLE_CUDA in ParU/CMakeLists as well
1 parent 5dd2175 commit eb28091

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

ParU/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
3838
${PROJECT_SOURCE_DIR}/../SuiteSparse_config/cmake_modules
3939
)
4040

41+
option ( ENABLE_CUDA "Enable CUDA acceleration" on )
42+
4143
include ( SuiteSparsePolicy )
4244

45+
if ( SUITESPARSE_CUDA )
46+
# ParU with CHOLMOD (which can use CUDA)
47+
enable_language ( CUDA )
48+
endif ( )
49+
4350
#-------------------------------------------------------------------------------
4451
# find library dependencies
4552
#-------------------------------------------------------------------------------

SuiteSparse_config/cmake_modules/SuiteSparsePolicy.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
# set ( CMAKE_BUILD_TYPE Debug )
1616
#
1717
# ENABLE_CUDA: if set to true, CUDA is enabled for the project.
18-
# Default: true for CHOLMOD and SPQR, false for GraphBLAS
19-
# (for which CUDA is in progress and not ready for
20-
# production use).
18+
# Default: true for CHOLMOD, SPQR, and ParU (which uses
19+
# CHOLMOD); false for GraphBLAS (for which CUDA is in
20+
# progress and not ready for production use).
2121
#
2222
# LOCAL_INSTALL: if true, "cmake --install" will install
2323
# into SuiteSparse/lib and SuiteSparse/include.

0 commit comments

Comments
 (0)