Package Details: darknet-hankai-git 4.0-1

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.47
First Submitted: 2025-02-26 06:47 (UTC)
Last Updated: 2025-03-18 21:07 (UTC)

Latest Comments

trougnouf commented on 2025-03-24 16:06 (UTC)

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-18 -DCMAKE_HIP_COMPILER_ROCM_ROOT=/opt/rocm, and installing amdsmi which should be added to the optional dependencies.

Unfortunately the built stopped due to an incompatible target (?)

[ 18%] Building CXX object src-lib/CMakeFiles/darknetobjlib.dir/convolutional_layer.cpp.o
clang-18: error: unsupported CUDA gpu architecture: gfx1032
clang-18: error: unsupported CUDA gpu architecture: gfx1035
make[2]: *** [src-lib/CMakeFiles/darknetobjlib.dir/build.make:202: src-lib/CMakeFiles/darknetobjlib.dir/blas_kernels.cu.o] Error 1

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),

-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
CMake Warning at CM_dependencies.cmake:52 (MESSAGE):
  Support for NVIDIA CUDA not found.
Call Stack (most recent call first):
  CMakeLists.txt:34 (INCLUDE)


-- Looking for a HIP compiler
-- Looking for a HIP compiler - NOTFOUND
CMake Warning at CM_dependencies.cmake:135 (MESSAGE):
  Support for AMD/ROCm/HIP not found.
Call Stack (most recent call first):
  CMakeLists.txt:34 (INCLUDE)


CMake Warning at CM_dependencies.cmake:146 (MESSAGE):
  Neither NVIDIA CUDA nor AMD ROCm detected.  Darknet will be CPU-only.
Call Stack (most recent call first):
  CMakeLists.txt:34 (INCLUDE)


[...]

CMake Warning:
  Manually-specified variables were not used by the project:

    ROCM_PATH

(or)

CMake Warning:
  Manually-specified variables were not used by the project:

    CUDA_TOOLKIT_ROOT_DIR

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 ..