I am running open cl on a linux machine with ARM processor and Mali GPU remotely. But it is giving an error something like "Unknown error: cannot retrieve platform id" at clGetPlatformIDs().
I tried both
cl_uint numPlatforms; //the NO. of platforms
cl_platform_id platform = NULL; //the chosen platform
cl_int status = clGetPlatformIDs(0, NULL, &numPlatforms);
and
cl_int status = clGetPlatformIDs(1, &platform, &numPlatforms);
but for both, I am getting the same error. The same code is working for me on my personal windows laptop with AMD graphics.
What could be the reason for this error?