lundi 27 août 2018

clGetPlatformIDs returns CL_INVALID_VALUE

So. I am trying to make an Android with the OpenCL support with Android Studio 3.1.4. I am using a Nokia 6 for the test but I can't manage to get it works.

This is the part of the code I am stuck with:

cl_uint numPlatforms;
cl_platform_id platform;
cl_int clstate;
clstate = clGetPlatformIDs(1, &platform, &numPlatforms);

As you can imagine clGetPlatformIDs returns CL_INVALID_VALUE but I can't figure out what Is the problem here due to the fact that the same code returns CL_SUCCESS with a Samsung Galaxy S7.

Aucun commentaire:

Enregistrer un commentaire