Is it possible to use amd gpu on python

I have tried to search how to install python with (amd) gpu support, but it seems that atleast pre builds only support cpu. Is this correct and how do I accelerate opencl functions with Umat and amd gpu?

AMD GPUs are supported through OpenCV’s ubiquitous OpenCL support (“transparent API”, cv.UMat)

just wrap a numpy array into a UMat, then pass the UMat to whatever OpenCV functions you need. any results have to be transferred back hostside using a .get() call, which gives you a numpy array.

all the opencv-python packages on PyPI support OpenCL.