Forums - How to enable GPU in Qualcomm SDM8250 with Qualcomm Adreno 650 GPU

1 post / 0 new
How to enable GPU in Qualcomm SDM8250 with Qualcomm Adreno 650 GPU
magang1
Join Date: 13 Dec 23
Posts: 1
Posted: Mon, 2023-12-25 02:21

Hi Qualcomm experts,

I met a bigger problem with GPU, the hardware is  Qualcomm SDM8250 with Qualcomm Adreno 650 GPU.

I want to invoke GPU in some simple operations for image, like resize. but looks below code doesn't work:

cv::UMat uSrc_gpu, uDst_gpu, frameGray_gpu;
cv::Mat image_gpu1 = cv::imread("/data/user/pic/pic5.jpg");
//std::chrono::steady_clock::time_point start_gpu1 = std::chrono::steady_clock::now();
image_gpu1.copyTo(uSrc_gpu);
std::chrono::steady_clock::time_point start_gpu1 = std::chrono::steady_clock::now();
cv::resize(uSrc_gpu, uDst_gpu, newSize, 0, 0, cv::INTER_LINEAR);
cv::cvtColor(uDst_gpu, frameGray_gpu, cv::COLOR_BGR2GRAY);
cv::equalizeHist(frameGray_gpu, frameGray_gpu);

and use function cv::ocl::haveOpenCL() to check, also shows not available.

so can you help to provide a guide how to do it?

just to invoke GPU during image resize operations.

Thanks a lot.

Br.

Michael

 

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.