From a666ab8f78a41186cdcbe61a18070d8d6a3919d9 Mon Sep 17 00:00:00 2001 From: ymd-stella Date: Sat, 29 Mar 2025 14:01:51 +0900 Subject: [PATCH] Fix bug when using cuda-efficient-features with OpenMP --- src/stella_vslam/feature/orb_extractor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stella_vslam/feature/orb_extractor.cc b/src/stella_vslam/feature/orb_extractor.cc index 98556e57..8cb7f8ae 100644 --- a/src/stella_vslam/feature/orb_extractor.cc +++ b/src/stella_vslam/feature/orb_extractor.cc @@ -88,7 +88,7 @@ void orb_extractor::extract(const cv::_InputArray& in_image, const cv::_InputArr offsets.push_back(offset); } -#ifdef USE_OPENMP +#if defined(USE_OPENMP) and !defined(USE_CUDA_EFFICIENT_DESCRIPTORS) #pragma omp parallel for schedule(dynamic) #endif for (unsigned int level = 0; level < orb_params_->num_levels_; ++level) {