commit: 051efe62ff7b5696889b5fe99a6cccb60848ac44 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> AuthorDate: Sun Nov 8 15:24:20 2020 +0000 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> CommitDate: Sun Nov 8 15:24:38 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=051efe62
sci-libs/pytorch: give cmake a fake /dev/nvidiactl. This disables the auto detection of CUDA compute capabilities. Reported-by: Hendrik Klug Suggested-by: Simon Detheridge Closes: https://bugs.gentoo.org/742617 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> sci-libs/pytorch/pytorch-1.6.0-r1.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild b/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild index b81be39e6..0708ef6d3 100644 --- a/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild +++ b/sci-libs/pytorch/pytorch-1.6.0-r1.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) -inherit distutils-r1 cmake-utils cuda +inherit distutils-r1 cmake cuda MPV=${PV/_p/a} @@ -153,6 +153,7 @@ src_prepare() { eapply "${FILESDIR}"/${PN}-1.6.0-nccl-nvccflags.patch ln -s . nccl || die + addpredict /dev/nvidiactl cuda_src_prepare export CUDAHOSTCXX=$(cuda_gccdir)/g++ fi
