OpenCV OpenCL Examples Use OPENCV_OPENCL_DEVICE env variable to define defualt OpenCL device. export OPENCV_OPENCL_DEVICE="Portable Computing Language:Accelerator:fsim" To run guassian example python3 ./gaussian.py -ocl