File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
SuiteSparse_config/cmake_modules Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,15 @@ set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
38
38
${PROJECT_SOURCE_DIR} /../SuiteSparse_config/cmake_modules
39
39
)
40
40
41
+ option ( ENABLE_CUDA "Enable CUDA acceleration" on )
42
+
41
43
include ( SuiteSparsePolicy )
42
44
45
+ if ( SUITESPARSE_CUDA )
46
+ # ParU with CHOLMOD (which can use CUDA)
47
+ enable_language ( CUDA )
48
+ endif ( )
49
+
43
50
#-------------------------------------------------------------------------------
44
51
# find library dependencies
45
52
#-------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 15
15
# set ( CMAKE_BUILD_TYPE Debug )
16
16
#
17
17
# 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).
21
21
#
22
22
# LOCAL_INSTALL: if true, "cmake --install" will install
23
23
# into SuiteSparse/lib and SuiteSparse/include.
You can’t perform that action at this time.
0 commit comments