Search Criteria
Package Details: darknet-hankai-git 4.0-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/darknet-hankai-git.git (read-only, click to copy) |
|---|---|
| Package Base: | darknet-hankai-git |
| Description: | Darknet: neural network framework for object detection |
| Upstream URL: | https://github.com/hank-ai/darknet |
| Licenses: | Apache-2.0 |
| Submitter: | Seed |
| Maintainer: | Seed |
| Last Packager: | Seed |
| Votes: | 1 |
| Popularity: | 0.000503 |
| First Submitted: | 2025-02-26 06:47 (UTC) |
| Last Updated: | 2025-10-20 01:28 (UTC) |
Dependencies (9)
- opencv (opencv-cuda)
- qt6-base (qt6-base-gitAUR, qt6-base-scrollfixAUR, qt6-base-scrollfixAUR, qt6-xcb-private-headers-scrollfixAUR, qt6-xcb-private-headers-scrollfixAUR, qt6-base-headlessAUR, qt6-base-hifpsAUR)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- amdsmi (opencl-amdAUR, rocm-gfx120x-binAUR, rocm-gfx110x-binAUR, rocm-gfx1150-binAUR, rocm-gfx1151-binAUR, rocm-gfx1152-binAUR, rocm-nightly-gfx1151-binAUR, rocm-nightly-gfx110x-binAUR) (optional) – for AMD GPU monitoring
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda-12.5AUR, cuda-12.9AUR, cuda-pascalAUR, cuda-12.8AUR) (optional) – for NVIDIA GPU support
- cudnn (cudnn9.10-cuda12.9AUR, cudnn-pascalAUR) (optional) – for NVIDIA cuDNN acceleration
- rocm-hip-runtime (opencl-amdAUR, rocm-gfx120x-binAUR, rocm-gfx110x-binAUR, rocm-gfx1150-binAUR, rocm-gfx1151-binAUR, rocm-gfx1152-binAUR, rocm-nightly-gfx1151-binAUR, rocm-nightly-gfx110x-binAUR) (optional) – for AMD GPU support
- rocm-hip-sdk (opencl-amd-devAUR, rocm-gfx120x-binAUR, rocm-gfx110x-binAUR, rocm-gfx1150-binAUR, rocm-gfx1151-binAUR, rocm-gfx1152-binAUR, rocm-nightly-gfx1151-binAUR, rocm-nightly-gfx110x-binAUR) (optional) – for AMD GPU development
Latest Comments
trougnouf commented on 2026-01-02 12:09 (UTC) (edited on 2026-01-02 13:25 (UTC) by trougnouf)
The package is currently broken
[trougnouf@sd darknet-hankai-git-2]$ makepkg /orb/Dev/aur/darknet-hankai-git-2/PKGBUILD: line 16: syntax error near unexpected token
>>' /orb/Dev/aur/darknet-hankai-git-2/PKGBUILD: line 16:>>>>>>> fccdcf6 (Fix CUDA/ROCm detection and Qt6 dependencies)' /orb/Dev/aur/darknet-hankai-git-2/PKGBUILD: line 17: syntax error near unexpected token)' /orb/Dev/aur/darknet-hankai-git-2/PKGBUILD: line 17:)' ==> ERROR: Failed to source /orb/Dev/aur/darknet-hankai-git-2/PKGBUILDLine 16 (in the middle of optdepends) is ">>>>>>> fccdcf6 (Fix CUDA/ROCm detection and Qt6 dependencies)"
It still fails on ROCm after removing the problematic "">>>>>>>": https://pastebin.com/raw/tsydCUiB
Could you add
provides=('darknet-hankai') conflicts=('darknet-hankai')?happyfunball commented on 2025-05-28 01:47 (UTC) (edited on 2025-05-28 01:49 (UTC) by happyfunball)
Thanks for making this. It compiles, but doesn't detect cuDNN. Can I specify the location somehow, like:
-DCMAKE_CUDA_COMPILER=/opt/cuda/bin/nvcc
nvidia-smi and nvcc show no issues, seems to be the makefile looking in the wrong place.
darknet reports:
Darknet V4 "Slate" v4.0-51-g53faaf9c CUDA runtime version 12080 (v12.8), driver version 12080 (v12.8) cuDNN is DISABLED => 0: NVIDIA GeForce RTX 4060 Ti [#8.9], 15.6 GiB
trougnouf commented on 2025-04-10 12:42 (UTC)
The ROCm issue is fixed as follow:
trougnouf commented on 2025-04-10 12:24 (UTC)
For AMD you need to disable CUDA and detect the architecture.
Something like
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_HIP_COMPILER=/opt/rocm/lib/llvm/bin/clang -DCMAKE_HIP_COMPILER_ROCM_ROOT=/opt/rocm -DDARKNET_TRY_CUDA=OFF -DCMAKE_HIP_ARCHITECTURES=gfx1100 ..works manually, but for some reason I get an error when trying to compile in AUR. I guess some makepkg flag. ( https://github.com/hank-ai/darknet/issues/116 )Either way neither AMD nor NVidia work in your current package, and I would recommend doing a split-package (-cuda, -rocm, -cpu) rather than the current detection attempt.
trougnouf commented on 2025-03-24 16:06 (UTC) (edited on 2025-04-10 12:22 (UTC) by trougnouf)
For AMD, I was able to get the compilation to detect HIP and go much farther with
-DCMAKE_HIP_COMPILER=/opt/rocm/lib/llvm/bin/clang -DCMAKE_HIP_COMPILER_ROCM_ROOT=/opt/rocm, and installingamdsmiwhich should be added to the optional dependencies.Unfortunately the built stopped due to an incompatible target (?)
trougnouf commented on 2025-03-21 12:44 (UTC) (edited on 2025-03-24 16:21 (UTC) by trougnouf)
No luck there. Tried on two computers (NVidia / AMD),
For NVidia it seems only nvcc matters (works with
-DCMAKE_CUDA_COMPILER=/opt/cuda/bin/nvcc).Seed commented on 2025-03-18 21:08 (UTC)
Can you try again? I can't test NVIDIA or AMD at the moment, but that issue should be fixed and ROCM and CPU building should also work.
trougnouf commented on 2025-03-18 14:59 (UTC)
Probably the same issue with ROCm
trougnouf commented on 2025-03-18 10:23 (UTC)
CUDA is not detected, please change the cmake line to
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CUDA_COMPILER=/opt/cuda/bin/nvcc ..