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);
...
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