@accensi fixed.
Search Criteria
Package Details: python-dlib-cuda 20.0-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/python-dlib.git (read-only, click to copy) |
|---|---|
| Package Base: | python-dlib |
| Description: | Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques. |
| Upstream URL: | http://www.dlib.net/ |
| Licenses: | boost |
| Conflicts: | python-dlib |
| Provides: | python-dlib |
| Submitter: | u1bmoW1r16 |
| Maintainer: | petronny (AutoUpdateBot) |
| Last Packager: | petronny |
| Votes: | 15 |
| Popularity: | 0.000185 |
| First Submitted: | 2016-10-27 15:05 (UTC) |
| Last Updated: | 2025-05-30 11:54 (UTC) |
Dependencies (19)
- cblas (blis-cblas-openmpAUR, blis-cblasAUR, aocl-blis-aoccAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, blas-mklAUR, blas-openblas-gitAUR, aocl-blisAUR, openblas-lapackAUR, blas-gitAUR, blas-openblas)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR, cuda-12.5AUR, cuda-12.9AUR)
- cudnn (cudnn9.10-cuda12.9AUR)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-ffplayoutAUR, ffmpeg-cudaAUR, ffmpeg-gitAUR, ffmpeg-headlessAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-amd-full-gitAUR, ffmpeg-full-gitAUR, ffmpeg-fullAUR)
- giflib (giflib-gitAUR)
- lapack (aocl-libflame-aoccAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, blas-mklAUR, aocl-libflameAUR, blas-openblas-gitAUR, openblas-lapackAUR, lapack-gitAUR, blas-openblas)
- libjpeg-turbo (mozjpeg-gitAUR, mozjpegAUR, libjpeg-turbo-gitAUR)
- libjxl (libjxl-gitAUR, libjxl-metricsAUR, libjxl-metrics-gitAUR)
- libpng (libpng-gitAUR, libpng-apngAUR)
- libx11 (libx11-gitAUR, libx11-mr293AUR)
- python
- boost (boost-gitAUR) (make)
- ccache-extAUR (make)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR, cuda-12.5AUR, cuda-12.9AUR) (make)
- cudnn (cudnn9.10-cuda12.9AUR) (make)
- python-setuptools (make)
- sqlite (sqlite-fossilAUR) (make)
- sqlite (sqlite-fossilAUR) (optional)
Required by (6)
- howdy (requires python-dlib)
- howdy-beta-git (requires python-dlib)
- howdy-bin (requires python-dlib)
- howdy-git (requires python-dlib)
- openface-git (requires python-dlib)
- python-face_recognition (requires python-dlib)
Sources (1)
petronny commented on 2018-07-03 05:02 (UTC)
accensi commented on 2018-07-03 04:55 (UTC)
Problems: - Even if just installing python-dlib, it is downloading all CUDA support - 1.4GB - Error (4/4) Updating the desktop file MIME type cache... ==> ERROR: python-dlib is not available for the 'x86_64' architecture. 2018-07-03 01:51:41,601 - wrappers - makepkg - ERROR - makepkg query makepkg -cf --noconfirm failed in directory ...../python-dlib
Kicer commented on 2018-07-01 16:10 (UTC)
@petronny, Hi, sorry, I've not noticed you are the new owner. I've been trying contact previous one before filling request.
petronny commented on 2018-07-01 13:13 (UTC)
@AbysmalBiscuit Thanks for your answers and I'm clear to my first question.
My second question, or the other questions are:
- If I build and install python-dlib with sqlite, then remove sqlite with
pacman -Rdd sqlite, will python-dlib run? - If I build and install python-dlib with lapack, then remove lapack with
pacman -Rdd lapack, will python-dlib run? - If I build and install python-dlib with libpng, then remove libpng with
pacman -Rdd libpng, will python-dlib run?
etc.
petronny commented on 2018-07-01 13:09 (UTC)
@Kicer Hi I just took over this package and I will update it in a few days. Sorry for the delay but please leave comments to contact me before filing a request.
AbysmalBiscuit commented on 2018-06-28 08:15 (UTC)
@petronny Sorry for the delay in answering your questions.
-
If you remove cuda or cudnn (since both are needed to compile and run dlib with cuda support) with
pacman -Rdd cuda cudnn, python-dlib-cuda will not fallback to using only the cpu. In fact importing dlib will simply fail with an ImportError with not being able to open the shared object file(s) (either cuda or cudnn). -
I do not fully understand your question, I will assume that you are asking if it is possible to replace cuda with another dependency and still have be capable of using dlib in python. You cannot replace cuda with something else, or only with cudnn. You need both cuda and cudnn, hence why they are not only make dependencies, but also dependencies.
The dependency issue and the need to recompile if you would want to switch from having cuda support to using cpu only are likely the reason why python dlib was originally split into a cuda and non-cuda version.
If you have any other questions please don't hesitate to ask.
petronny commented on 2018-06-26 15:41 (UTC) (edited on 2018-06-26 15:41 (UTC) by petronny)
Hi I just took over python-dlib and I'm trying to merge this and python-dlib into one PKGBUILD.
So I have some questions:
-
If I build and install python-dlib-cuda with cuda, then remove cuda with
pacman -Rdd cuda, will python-dlib-cuda run and fallback to cpu? -
Replace cuda in 1 with cudnn or an optional dependency like cblas, will python-dlib-cuda run without it?
AbysmalBiscuit commented on 2018-04-30 12:43 (UTC) (edited on 2018-05-03 10:55 (UTC) by AbysmalBiscuit)
@p00h cuda presence is tested for by cmake (in dlib/CMakeLists.txt from line 593 you can see the cuda tests), hence there is no need to explicitly invoke it. Also even if it is explicitly invoked, and cudnn isn't installed the package will still build fine, but without gpu support. However, avx and sse are not tested for by cmake (as far as I could find), which is why they are tested for by the PKGBUILD.
You are absolutely correct about cudnn being a missing essential dependency, thanks for pointing it out!
p00h commented on 2018-04-18 11:56 (UTC)
Unfortunately, the provided PKGBUILD is invalid: 1) It lacks of essential cudnn package in dependencies 2) It does not contain the essential --yes DLIB_USE_CUDA param.
If you tried to make a package, it would be compiled but without the CUDA support. Feel free to check it out: cmake configuration process will claim that.
So there is the working (fixed) PKBUILD, it was tested with face_recognition package and 100% works. https://pastebin.com/c4eyhzEZ
AbysmalBiscuit commented on 2018-03-16 10:19 (UTC) (edited on 2018-03-16 11:04 (UTC) by AbysmalBiscuit)
agradzki,
I'll adopt the package and maintain it then. :)
Pinned Comments
petronny commented on 2024-03-30 13:11 (UTC) (edited on 2024-03-30 13:13 (UTC) by petronny)
Set
_build_cpuand_build_cudato 1 and 0 to build or not build the CPU or CUDA version.If
options=(!lto)has no effect, please check if it's still enabled in/etc/makepkg.conf.petronny commented on 2023-11-28 04:57 (UTC)
Prebuilt binaries of this package can be found in arch4edu.