From 73d0d169e783a170dbc3598445b009f7fc68bdca Mon Sep 17 00:00:00 2001 From: David Koller Date: Wed, 21 Aug 2024 12:52:17 -0400 Subject: [PATCH] Update bundle_adjustment.cc --- src/colmap/estimators/bundle_adjustment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/colmap/estimators/bundle_adjustment.cc b/src/colmap/estimators/bundle_adjustment.cc index 32c140a178..b8e1b66708 100644 --- a/src/colmap/estimators/bundle_adjustment.cc +++ b/src/colmap/estimators/bundle_adjustment.cc @@ -346,7 +346,7 @@ ceres::Solver::Options BundleAdjuster::SetUpSolverOptions( solver_options.linear_solver_type = ceres::SPARSE_SCHUR; #if (CERES_VERSION_MAJOR >= 3 || \ (CERES_VERSION_MAJOR == 2 && CERES_VERSION_MINOR >= 2)) && \ - !defined(CERES_NO_CUDSS) && defined(CUDA_ENABLED) + !defined(CERES_NO_CUDSS) && defined(COLMAP_CUDA_ENABLED) if (options_.use_gpu) { const std::vector gpu_indices = CSVToVector(options_.gpu_index); THROW_CHECK_GT(gpu_indices.size(), 0);