mirror of
https://github.com/opencv/opencv.git
synced 2024-12-14 08:59:11 +08:00
35ca2f78d6
Fix CUDA for old GPUs without FP16 support #25880
Fixes #21461
~This is a build-time solution that reflects https://github.com/opencv/opencv/blob/4.10.0/modules/dnn/src/cuda4dnn/init.hpp#L68-L82.~
~We shouldn't add an invalid target while building with `CUDA_ARCH_BIN` < 53.~
_(please see [this discussion](https://github.com/opencv/opencv/pull/25880#discussion_r1668074505))_
This is a run-time solution that basically reverts [these lines](
|
||
---|---|---|
.. | ||
cmake | ||
include/opencv2 | ||
misc | ||
perf | ||
src | ||
test | ||
CMakeLists.txt |