Have error for run yolov4 darknet on manifold2 jetson tx2 without sudo

Hi!
I have a problem with launch yolov4 darknet on manifold 2G (jetson tx2).
I’am use darknet from this github(AlexeyAB): https://github.com/AlexeyAB/darknet.git
command for launch:
./darknet detector test obj.data yolov4.cfg yolov4.weights image.jpg -out -dont_show

CUDA status Error: file: ./src/dark_cuda.c : () : line: 373 : build time: Oct 15 2020 - 14:57:53

CUDA Error: unknown error
CUDA Error: unknown error: Permission denied
darknet: ./src/utils.c:325: error: Assertion `0’ failed.
Aborted (core dumped)

if run this command with sudo privilege, will be ok.
how can I use darknet without sudo privilege?

Hi,

Suppose you don’t need the root privilege for the darkenet app.

May I know the location you clone the darknet source?
You can try to clone the source to /home/nvidia/ to see if helps.

Thanks.

Hi!
Yes, I need the darknet app to work without su privileges
Sources darknet location in home dir.
image
The darknet compiled with parameters (Makefile):

GPU=1
CUDNN=1
CUDNN_HALF=0
OPENCV=1
AVX=0
OPENMP=0
LIBSO=1
ZED_CAMERA=0
ZED_CAMERA_v2_8=0
I tried compiling without CUDNN, but have same result

I use a built-in computer from DJI, this device contains a jetson TX2. But the OS (ubuntu) has some modifications: the default user is dji, not nvidia

Hi,

Please check if you have enabled the privilege of the customized user name.

Thanks.

Hi,
I check, yes, user is member of group “video”.
image
Thanks.