Closed GW-Renesas closed 2 years ago
At a guess I'd say that OpenCL isn't working on the device. Does clinfo show that the Mali-G31 is providing OpenCL?
I get the following output which indicates the Mali-G31 is providing OpenCL:
Platform Name ARM Platform
Number of devices 1
Device Name Mali-G31 r0p0
Device Vendor ARM
Device Vendor ID 0x70930000
Device Version OpenCL 3.0 v1.r32p0-01eac0.d268f473e71e10711a350839d8d94e14
however I also get the following at the end of the clinfo output:
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) ARM Platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [ARM]
clCreateContext(NULL, ...) [default] Success [ARM]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name ARM Platform
Device Name Mali-G31 r0p0
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name ARM Platform
Device Name Mali-G31 r0p0
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name ARM Platform
Device Name Mali-G31 r0p0
NOTE: your OpenCL library only supports OpenCL 2.1,
but some installed platforms support OpenCL 3.0.
Programs using 3.0 features may crash
or behave unexpectedly
The versioning information appears relevant:
your OpenCL library only supports OpenCL 2.1,
Does this line indicate the version of the driver and OpenCL library need to be v3.0?
That's very interesting, I've not seen that before. Maybe ClQLstmEndToEndTest needs OpenCL 3.0.
Ah, now I look at the test output, I think it's just this one test which is failing. @morgolock is it possible that Quantized LSTM requires OpenCL 3.0?
Hi @MatthewARM
No, ACL requires OpenCL 1.2 and non uniform workgroup size extension.
I'm trying to reproduce the error on a G31.
Hi @morgolock,
Were you able to reproduce this issue on a G31 at all?
Hi @GW-Renesas
Yes, I reproduced on G31. I'm looking into it.
Hi @GW-Renesas
The following patch fixes the problem: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8093
Hope this helps.
Hi @morgolock
That is great news, I will test on my platform shortly.
thanks
Hi @morgolock
Many thanks, this has solved the backend assignment error on my platform. Recently I also see similar layer related check errors, has this been seen before?
Hi @GW-Renesas
The failures mentioned in the attachment seem unrelated to QLSTM and the OpenCL backend, I'd suggest closing this issue and creating a new one.
Hope this helps.
Hi @morgolock,
No problem, thanks for the assistance.
Hi All,
I'm running UnitTests on a platform with duel Cortex-A55 CPUs and a Mali-G31. Neon and OpenCL are enabled. The build is also being completed from a Yocto environment.
I get the following output:
Is there anything obvious that I have missed?
Thanks, Gareth