Package Details: dlib-cuda 19.21-3

Git Clone URL: https://aur.archlinux.org/dlib.git (read-only, click to copy)
Package Base: dlib
Description: A general purpose cross-platform C++ library designed using contract programming and modern C++ techniques (with CUDA)
Upstream URL: http://dlib.net
Keywords: convolutional deep dlib learning machine networks neural
Licenses: custom
Conflicts: dlib
Submitter: pingplug
Maintainer: pingplug (swiftscythe)
Last Packager: swiftscythe
Votes: 32
Popularity: 0.093067
First Submitted: 2015-08-19 09:02
Last Updated: 2020-11-07 02:37

Latest Comments

1 2 3 Next › Last »

swiftscythe commented on 2020-11-07 02:25

@xantares done

xantares commented on 2020-11-05 12:10

also your package does not honor makepkg's MAKEFLAGS variable, and ninja by default uses N+2 threads, this exhausts my memory can you pass MAKEFLAGS to ninja ? or else regular makefiles are fine also

swiftscythe commented on 2020-11-02 01:28

@xantares, sure I will update it. However I did it because openblas is faster, so I was thought people want to use that instead of complaining on GitHub why it's slow (as I've seen many times). But I guess that's not for me to decide.

xantares commented on 2020-10-28 10:29

hello,

setting openblas as as dependency instead of the blas virtual package

means that we can no longer decide whether to use openblas or the regular blas

it also leads to conflicts

would you reconsider that choice ?

swiftscythe commented on 2020-09-02 08:56

Would you be willing to add a split package (in the same fashion as pytorch or tensorflow) that builds dlib-cpu and dlib-cuda?

I could do it if you wanted me to :)

harbind commented on 2020-04-06 11:14

I was coming here to suggest to change the source to the official site, but noticed that someone already did that. That sourceforge is slow at its best, quite often you get nothing out from it.

I can also verify that this package compiles and works fine on both armv7h and aarch64, if you want to update the arch array.

sandsmark commented on 2020-04-04 14:39

Another request: sourceforge is extremely slow (at least here), could you switch to either the official site (dlib.net) or github?

official is pretty straightforward, it's the same tarball:

  -source=("https://downloads.sourceforge.net/project/dclib/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
  +source=("http://dlib.net/files/${pkgname}-${pkgver}.tar.bz2")

Github only has tar.gz as far as I know, so it needs a different sha256sum:

  -source=("https://downloads.sourceforge.net/project/dclib/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
  -sha256sums=('1decfe883635ce51acd72869cebe870ab9b85eb094d417adc8f48aa7b8c60cd7')
  +source=("https://github.com/davisking/${pkgname}/archive/v${pkgver}.tar.gz")
  +sha256sums=('7af455bb422d3ae5ef369c51ee64e98fa68c39435b0fa23be2e5d593a3d45b87')

sandsmark commented on 2019-08-07 16:25

Would be nice to install imglab as well. Not sure if this is the best solution, but it works:

http://ix.io/1QV8

edit: putting it inline, in case ix.io becomes unavailable:

diff --git PKGBUILD PKGBUILD
index 378f43b..55ba9ce 100644
--- PKGBUILD
+++ PKGBUILD
@@ -23,20 +23,31 @@ sha256sums=('24772f9b2b99cf59a85fd1243ca1327cbf7340d83395b32a6c16a3a16136327b')

 build() {
   cd "${srcdir}"
-  mkdir -p build && cd build
-  cmake \
+  export CMAKE_ARGS="
     -DCMAKE_INSTALL_PREFIX:PATH=/usr \
     -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
     -DBUILD_SHARED_LIBS:BOOL=ON \
     -DCUDA_HOST_COMPILER='/opt/cuda/bin/gcc' \
     -DCMAKE_BUILD_TYPE=Release \
-    "../${pkgname}-${pkgver}"
+  "
   if [[ -f "/usr/lib/ccache/bin/nvcc-ccache" ]] ; then
-    cmake \
+    CMAKE_ARGS+=" \
       -DCUDA_NVCC_EXECUTABLE=/usr/lib/ccache/bin/nvcc-ccache \
       -DCUDA_HOST_COMPILER=/usr/lib/ccache/bin/gcc \
-      "../${pkgname}-${pkgver}"
+      "
   fi
+
+  mkdir -p build && cd build
+  cmake \
+    ${CMAKE_ARGS} \
+    "../${pkgname}-${pkgver}"
+  make
+
+  cd "${srcdir}"
+  mkdir -p build-imglab && cd build-imglab
+  cmake \
+    ${CMAKE_ARGS} \
+    "../${pkgname}-${pkgver}/tools/imglab"
   make
 }

@@ -44,6 +55,9 @@ package() {
   cd "${srcdir}/build"
   make DESTDIR=${pkgdir} install
   install -Dm644 "../${pkgname}-${pkgver}/dlib/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  cd "${srcdir}/build-imglab"
+  make DESTDIR=${pkgdir} install
 }

 # vim:set ts=2 sw=2 et:

xantares commented on 2019-04-25 09:36

hi,

you have to replace blas by cblas in depends

pingplug commented on 2019-04-25 09:10

xantares:

report empty dir issue (also missing cmake files) to upstream