Skip to content

Commit bb6a679

Browse files
authored
Update bundle_adjustment.cc (#2725)
1 parent e9b946a commit bb6a679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/colmap/estimators/bundle_adjustment.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ ceres::Solver::Options BundleAdjuster::SetUpSolverOptions(
346346
solver_options.linear_solver_type = ceres::SPARSE_SCHUR;
347347
#if (CERES_VERSION_MAJOR >= 3 || \
348348
(CERES_VERSION_MAJOR == 2 && CERES_VERSION_MINOR >= 2)) && \
349-
!defined(CERES_NO_CUDSS) && defined(CUDA_ENABLED)
349+
!defined(CERES_NO_CUDSS) && defined(COLMAP_CUDA_ENABLED)
350350
if (options_.use_gpu) {
351351
const std::vector<int> gpu_indices = CSVToVector<int>(options_.gpu_index);
352352
THROW_CHECK_GT(gpu_indices.size(), 0);

0 commit comments

Comments
 (0)