Skip to content

Commit

Permalink
Fix CUDA builds for OpenCV
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Oct 24, 2023
1 parent 931bff1 commit fe03ef7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opencv/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ fi
# fixes for CUDA
sedinplace '/typedef ::/d' modules/core/include/opencv2/core/cvdef.h
sedinplace 's/__constant__//g' modules/core/include/opencv2/core/cuda/detail/color_detail.hpp
sedinplace 's/(weight != 1.0)/((double)weight != 1.0)/g' modules/dnn/src/cuda4dnn/primitives/normalize_bbox.hpp
sedinplace 's/(nms_iou_threshold > 0)/((double)nms_iou_threshold > 0.0)/g' modules/dnn/src/cuda4dnn/primitives/region.hpp
sedinplace 's/ocv_add_app(model-diagnostics)/#ocv_add_app(model-diagnostics)/g' apps/CMakeLists.txt

# avoid issues when checking version of cross-compiled Python
Expand Down

0 comments on commit fe03ef7

Please sign in to comment.