I was trying to run Darknet with GPU acceleration using CUDA API. So I followed instructions from here, changed GPU=1 in Makefile and started make. When I'm trying to run test it fails due to CUDA Error.
./darknet yolo test cfg/yolo.cfg yolo.weights data/dog.jpg CUDA Error: unknown error darknet: ./src/cuda.c:21: check_error: Assertion `0' failed.
I'm using Ubuntu 14.04, CUDA 7.5 and my NVIDIA-SMI 352.93 and Driver Version: 352.93 on Titan X I'm pretty sure that my CUDA works fine and driver's version is up to date, because I'm using it to accelerate Caffe. My guess is that Darknet cannot locate CUDA directory.
Can anyone help me with that issue?
you should modify the value of configure parameter 'ARCH'. the default value is --gpu-architecture=compute_52, --gpu-code=compute_52. my setting is --gpu-architecture=compute_30, --gpu-code=compute_30, and it works. it depends on your actual gpu architecture. more detail is in cuda toolkit documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With