From f957a4700c88e595c6ccf055417fff747ada0bdb Mon Sep 17 00:00:00 2001 From: Sébastien Fabbro Date: Thu, 27 Jul 2017 18:07:54 +0000 Subject: sci-libs/dlib: fixed more cuda stuff Package-Manager: Portage-2.3.6, Repoman-2.3.3 --- sci-libs/dlib/dlib-19.4.ebuild | 10 ++++++---- sci-libs/dlib/metadata.xml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'sci-libs/dlib') diff --git a/sci-libs/dlib/dlib-19.4.ebuild b/sci-libs/dlib/dlib-19.4.ebuild index 9d44e7177a75..c6116343a93b 100644 --- a/sci-libs/dlib/dlib-19.4.ebuild +++ b/sci-libs/dlib/dlib-19.4.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit cmake-utils +inherit cmake-utils cuda DESCRIPTION="Numerical and networking C++ library" HOMEPAGE="http://dlib.net/" @@ -19,20 +19,22 @@ IUSE="cblas debug cuda examples gif jpeg lapack mkl png RDEPEND=" cblas? ( virtual/cblas:= ) - cuda? ( >=dev-util/nvidia-cuda-toolkit-7 ) + cuda? ( dev-libs/cudnn:= ) jpeg? ( virtual/jpeg:0= ) lapack? ( virtual/lapack:= ) - mkl? ( sci-libs/mkl ) + mkl? ( sci-libs/mkl:= ) png? ( media-libs/libpng:0= ) sqlite? ( dev-db/sqlite:3= ) - X? ( x11-libs/libX11 ) + X? ( x11-libs/libX11:= ) " DEPEND="test? ( ${RDEPEND} )" src_prepare() { + use cuda && cuda_src_prepare cmake-utils_src_prepare sed -i -e '/LICENSE.txt/d' dlib/CMakeLists.txt || die } + src_configure() { local mycmakeargs=( -DLIB_INSTALL_DIR="$(get_libdir)" diff --git a/sci-libs/dlib/metadata.xml b/sci-libs/dlib/metadata.xml index 3d2eccafb59b..422f29c52e5a 100644 --- a/sci-libs/dlib/metadata.xml +++ b/sci-libs/dlib/metadata.xml @@ -13,7 +13,7 @@ Build with CBLAS virtual/cblas - Enable support for CUDA for GPU (cuDNN) + Enable support for CUDA for Deep Neural Networks (cuDNN) on GPU (experimental) Enable support for Intel FFT sci-libs/mkl -- cgit v1.2.3-65-gdbad