Diff caffe2-1.13.1-r6 with a caffe2-2.0.0-r5
/usr/portage/sci-libs/caffe2/caffe2-2.0.0-r5.ebuild 2023-10-09 14:52:35.060368491 +0300 | ||
---|---|---|
57 | 57 |
opencv? ( media-libs/opencv:= ) |
58 | 58 |
qnnpack? ( sci-libs/QNNPACK ) |
59 | 59 |
tensorpipe? ( sci-libs/tensorpipe ) |
60 |
xnnpack? ( sci-libs/XNNPACK ) |
|
60 |
xnnpack? ( >=sci-libs/XNNPACK-2022.12.22 ) |
|
61 | 61 |
" |
62 | 62 |
DEPEND=" |
63 | 63 |
${RDEPEND} |
... | ... | |
78 | 78 |
S="${WORKDIR}"/${MYP} |
79 | 79 | |
80 | 80 |
PATCHES=( |
81 |
"${FILESDIR}"/${PN}-1.13.0-gentoo.patch |
|
81 |
"${FILESDIR}"/${P}-gentoo.patch |
|
82 | 82 |
"${FILESDIR}"/${PN}-1.13.0-install-dirs.patch |
83 | 83 |
"${FILESDIR}"/${PN}-1.12.0-glog-0.6.0.patch |
84 |
"${FILESDIR}"/${PN}-1.12.0-clang.patch |
|
85 |
"${FILESDIR}"/${P}-tensorpipe.patch |
|
84 |
"${FILESDIR}"/${PN}-1.13.1-tensorpipe.patch |
|
85 |
"${FILESDIR}"/${P}-gcc13.patch |
|
86 |
"${FILESDIR}"/${P}-cudnn_include_fix.patch |
|
86 | 87 |
) |
87 | 88 | |
88 | 89 |
src_prepare() { |
... | ... | |
120 | 121 |
-DUSE_CUDNN=$(usex cuda) |
121 | 122 |
-DUSE_FAST_NVCC=$(usex cuda) |
122 | 123 |
-DTORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-3.5 7.0}" |
124 |
-DBUILD_NVFUSER=$(usex cuda) |
|
123 | 125 |
-DUSE_DISTRIBUTED=$(usex distributed) |
124 | 126 |
-DUSE_MPI=$(usex mpi) |
125 | 127 |
-DUSE_FAKELOWP=OFF |
... | ... | |
179 | 181 |
src_install() { |
180 | 182 |
cmake_src_install |
181 | 183 | |
184 |
use cuda && dolib.so "${BUILD_DIR}"/lib/libnvfuser_codegen.so |
|
185 | ||
182 | 186 |
insinto "/var/lib/${PN}" |
183 | 187 |
doins "${BUILD_DIR}"/CMakeCache.txt |
184 | 188 |