mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Add cuDSS as sparse Cholesky solver
cuDSS could be used as an alternative for SuiteSparse and EigenSparse in case if CUDA capable GPU is available. Change-Id: I7a567093ce91363478118153e181134ed5804573
This commit is contained in:
@@ -36,6 +36,9 @@
|
||||
#include "ceres/version.h"
|
||||
#ifndef CERES_NO_CUDA
|
||||
#include "cuda_runtime.h"
|
||||
#ifndef CERES_NO_CUDSS
|
||||
#include "cudss.h"
|
||||
#endif // CERES_NO_CUDSS
|
||||
#endif // CERES_NO_CUDA
|
||||
|
||||
namespace ceres::internal {
|
||||
@@ -79,6 +82,11 @@ constexpr char kVersion[] =
|
||||
|
||||
#ifndef CERES_NO_CUDA
|
||||
"-cuda-(" CERES_TO_STRING(CUDART_VERSION) ")"
|
||||
#ifndef CERES_NO_CUDSS
|
||||
"-cudss-(" CERES_SEMVER_VERSION(CUDSS_VERSION_MAJOR,
|
||||
CUDSS_VERSION_MINOR,
|
||||
CUDSS_VERSION_PATCH) ")"
|
||||
#endif // CERES_NO_CUDSS
|
||||
#endif
|
||||
;
|
||||
// clang-format on
|
||||
|
||||
Reference in New Issue
Block a user