summaryrefslogtreecommitdiff
path: root/sci-libs/caffe2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-27 10:00:13 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-27 10:00:13 +0000
commit73ef00f9e2b100c7d0fedede11300940cc26670a (patch)
tree19d1f10cdd98aec4743c36942242eac9f318641d /sci-libs/caffe2
parent063e5b486db858a2b1ecec798af89f5484d475bd (diff)
gentoo auto-resync : 27:02:2023 - 10:00:13
Diffstat (limited to 'sci-libs/caffe2')
-rw-r--r--sci-libs/caffe2/Manifest2
-rw-r--r--sci-libs/caffe2/caffe2-1.13.1-r1.ebuild10
2 files changed, 9 insertions, 3 deletions
diff --git a/sci-libs/caffe2/Manifest b/sci-libs/caffe2/Manifest
index 212a6c247cd6..73d6d616ed33 100644
--- a/sci-libs/caffe2/Manifest
+++ b/sci-libs/caffe2/Manifest
@@ -3,5 +3,5 @@ AUX caffe2-1.12.0-glog-0.6.0.patch 959 BLAKE2B eb0c18a34a2c5a1b68a420b9001eac5c8
AUX caffe2-1.13.0-gentoo.patch 8000 BLAKE2B a11a6bccac970ce8658041db20f90814183a8eef45571565512bafa9f172348f08ccdb67f5e543c8f9e236a6283f2d50a608cfc671e18886319a82dc84cd95e5 SHA512 20a43490cb80174fc688f7a773ac332362a5a013885a7cfdfdfe89996bc3e2483ad4b29149d71730213174d27d8534707813e825bdf4ea3e3bc7b664bad39953
AUX caffe2-1.13.0-install-dirs.patch 5737 BLAKE2B 10b10e3a29976344c7596e1c4e7a604856c66d91cb7518308422f7ffac82ffe183dc81becab27866814c06e321e97458ab6a6908aa01379299c7fdf8fdccf153 SHA512 1e2e4f646cec24b5373872865522a909d1c154623e232c06e3da361e4d29b8d7520c446f53fbf42aab5f00bab05d1f278ce9425e506a9a5ac73cbb10570bd325
DIST pytorch-1.13.1.tar.gz 108279745 BLAKE2B 75de03b74dfdaf8d8fb5ea743fcc0c1b0e408a714ad4160c487921220a7b1755e5fa6e587e6bbc8c9f34dd75e096d2e6dd69c80d24821835fff6c833314434d3 SHA512 f16f89d027efade11d057245cad5b69a390e88b458398310ae30de2dbff7c8fd7f1165be7b8da7ea989c81ac3f5a66c5cb9050610e441a97c83fb8aa28c0bd62
-EBUILD caffe2-1.13.1-r1.ebuild 4492 BLAKE2B eeb0ec297dedfbfa0c3b0ef71569432b97fa7e448022ab88c714ff044f11fa9e3ad1aad2ce34e0ef04382c31eced8da34681161b981fa46b840c61ea4b18083a SHA512 c22d7d1b3393e85a7ce530ddc6eeba2c878e7c2caa00f65a2d180f24a651c7713ad0bc994477b309b54f99c745f6d961421f247b1b40602c8bcdb7fedaf76cb9
+EBUILD caffe2-1.13.1-r1.ebuild 4584 BLAKE2B 787f580fb41991d73484f174d4c9d5445297d929b7bc085d750827d86d0379fbed4182369b84667e0eb1db80e657f18d544e250c7c9494e2678e3679be266298 SHA512 56d368900401e766b6a7f393ab78e99fa87880397ea9655174e0cbc2249d9596040d3628c13536b7c4c0fcb30a478fb829c72e898a84c35c48bd2e2b13151973
MISC metadata.xml 961 BLAKE2B 7e0924bce6c952cf8b5e997a50e11aad18d572060087ab877d9600399712a6e46f7bee9938aef6b7af142de21046c1cbe541302a68a20072d1040e7b084b202c SHA512 9ff387a4d11eb83799665e38690f0c668ea6147ab92cc8fd68d4fb60590e51863d4530b885f71bd660429c6d38e573a2a7d8fca5e0139b82111ab05cb61b67d9
diff --git a/sci-libs/caffe2/caffe2-1.13.1-r1.ebuild b/sci-libs/caffe2/caffe2-1.13.1-r1.ebuild
index 352a593d3559..4e0dfcb9b980 100644
--- a/sci-libs/caffe2/caffe2-1.13.1-r1.ebuild
+++ b/sci-libs/caffe2/caffe2-1.13.1-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
-inherit python-single-r1 cmake flag-o-matic
+inherit python-single-r1 cmake cuda flag-o-matic
MYPN=pytorch
MYP=${MYPN}-${PV}
@@ -148,7 +148,13 @@ src_configure() {
-DLIBSHM_INSTALL_LIB_SUBDIR="${EPREFIX}"/usr/$(get_libdir)
)
- use cuda && addpredict "/dev/nvidiactl" # bug 867706
+ if use cuda; then
+ addpredict "/dev/nvidiactl" # bug 867706
+
+ mycmakeargs+=(
+ -DCMAKE_CUDA_FLAGS="$(cuda_gccdir -f | tr -d \")"
+ )
+ fi
cmake_src_configure
}