Skip to content

Commit a6e5d04

Browse files
authored
Fix bug when using cuda-efficient-features with OpenMP (#640)
1 parent 98d82d8 commit a6e5d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stella_vslam/feature/orb_extractor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void orb_extractor::extract(const cv::_InputArray& in_image, const cv::_InputArr
8888
offsets.push_back(offset);
8989
}
9090

91-
#ifdef USE_OPENMP
91+
#if defined(USE_OPENMP) and !defined(USE_CUDA_EFFICIENT_DESCRIPTORS)
9292
#pragma omp parallel for schedule(dynamic)
9393
#endif
9494
for (unsigned int level = 0; level < orb_params_->num_levels_; ++level) {

0 commit comments

Comments
 (0)