hasOpenCL() returns 0 even though OpenCV is built with use_opencl flag turned on. using jetson orin with jetpack 5.1.1, opencl 1.2 and opencv 4.8. The same goes for python. cv2.ocl.hasOpenCL() returns 0 in python also.
best go to the nvidia forum about this.
OpenCV relies on the system being able to do it.