Forums - Running fastCV on SDM845

2 posts / 0 new
Last post
Running fastCV on SDM845
yanharry
Join Date: 9 Mar 18
Posts: 1
Posted: Mon, 2018-04-16 18:51

Hi all,

Has anyone ever tried to run the fastCV on the latest SDM845 platform? It seems I did not get much performance gain compared with the counter part APIs in OpenCV.

Also, I tried to write OpenCL code for 845 Adreno GPU. However, it appears the very basic API calls such as clGetPlatformIDs or clGetDeviceIDs always returned CL_INVALID_VALUE error. Did anyone have the same issue? Please shed some light on it. Thanks in advance.!

...

    cl_char device_name[1024] = {0};
    cl_char platform_name[1024] = {0};
    cl_platform_id platform_id = 0;
    cl_device_id device_id = 0;
    err = clGetPlatformIDs(1, &platform_id, NULL);
    err |= clGetPlatformInfo(platform_id, CL_PLATFORM_NAME, sizeof(platform_name), platform_name, NULL);
    err |= clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU, 1, &device_id, NULL);
    err |= clGetDeviceInfo(device_id, CL_DEVICE_NAME, sizeof(device_name), device_name, NULL);
    if (err != CL_SUCCESS)
        LOGI("[OpenCL] Error: Get (platform|device) info failed!  (%s)", GetErrorString(err));
    else
        LOGI("[OpenCL] TestGetInfo: %s, %s", platform_name, device_name);    
...

 

  • Up0
  • Down0
jeff4s Moderator
Join Date: 4 Nov 12
Posts: 106
Posted: Tue, 2018-04-17 09:29

Hi,

Did you call this API first before any other FastCV APIs?

fcvSetOpertionMode(mode);

For GPU I suppose the following forum can address your issues.

https://developer.qualcomm.com/forums/software/adreno-gpu-sdk

Cheers,

-Jeff

 

  • Up0
  • Down0
or Register

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.