public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Add cuda_dnn option
Date: Fri, 28 Aug 2026 13:31:53 GMT [thread overview]
Message-ID: <178792391368.1.11054239658153824154.rpms-opencv-8b199e9c3348@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : 8b199e9c3348e66d1aa273385d80b7127f91d0de
Author : Nicolas Chauvet <kwizart@gmail.com>
Date : 2021-03-12T17:31:24+01:00
Stats : +3/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/8b199e9c3348e66d1aa273385d80b7127f91d0de?branch=opencv5
Log:
Add cuda_dnn option
---
diff --git a/opencv.spec b/opencv.spec
index 259efe1..21c7bef 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -45,6 +45,7 @@
%global _cuda_version 11.2
%global _cuda_rpm_version 11-2
%global _cuda_prefix /usr/local/cuda-%{_cuda_version}
+%bcond_without dnn_cuda
%endif
Name: opencv
@@ -81,6 +82,7 @@ BuildRequires: cuda-minimal-build-%{?_cuda_rpm_version}
BuildRequires: pkgconfig(cublas-%{?_cuda_version})
BuildRequires: pkgconfig(cufft-%{?_cuda_version})
BuildRequires: pkgconfig(nppc-%{?_cuda_version})
+%{?with_dnn_cuda:BuildRequires: libcudnn8-devel}
}
%{?with_eigen2:BuildRequires: eigen2-devel}
%{?with_eigen3:BuildRequires: eigen3-devel}
@@ -301,6 +303,7 @@ install -pm 0644 %{SOURCE4} .cache/ade/
-DCUDA_VERBOSE_BUILD=ON \
-DCUDA_PROPAGATE_HOST_FLAGS=OFF \
-DCUDA_NVCC_FLAGS="-Xcompiler -fPIC" \
+ %{?with_dnn_cuda:-DOPENCV_DNN_CUDA=ON} \
} \
%{?with_openni: -DWITH_OPENNI=ON } \
%{!?with_xine: -DWITH_XINE=OFF } \
reply other threads:[~2026-08-28 13:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178792391368.1.11054239658153824154.rpms-opencv-8b199e9c3348@fedoraproject.org \
--to=kwizart@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox