commit:     dfb44a20d723cace8c89d65437c4456bfba39f91
Author:     James Beddek <telans <AT> posteo <DOT> de>
AuthorDate: Wed Sep 14 12:19:47 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Sep 14 20:51:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfb44a20

sci-libs/caffe2: use addpredict /dev/nvidiactl for CUDA version check

Closes: https://bugs.gentoo.org/867706
Signed-off-by: James Beddek <telans <AT> posteo.de>
Closes: https://github.com/gentoo/gentoo/pull/27253
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/caffe2/caffe2-1.12.0.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sci-libs/caffe2/caffe2-1.12.0.ebuild 
b/sci-libs/caffe2/caffe2-1.12.0.ebuild
index 0a44b6824c3c..366c29f98b7f 100644
--- a/sci-libs/caffe2/caffe2-1.12.0.ebuild
+++ b/sci-libs/caffe2/caffe2-1.12.0.ebuild
@@ -139,6 +139,8 @@ src_configure() {
                -DTORCH_INSTALL_LIB_DIR=/usr/$(get_libdir)
                -DLIBSHM_INSTALL_LIB_SUBDIR=/usr/$(get_libdir)
        )
+
+       use cuda && addpredict "/dev/nvidiactl" # bug 867706
        cmake_src_configure
 }
 

Reply via email to