CUDA is installed and activated but echo $CUDA_VISIBLE_DEVICES returns nothing and can't use CUDA at all

Opencv with CUDA support is available on Jtop.
I was trying to use CUDA support in object detection (YOLO model) so I rebuilt opencv, but using gpu failed. Initially, I thought method of building opencv caused problem but after painful days I concluded CUDA itself has problem.
This link is previous topic about opencv