pavandsp

platform id value seems wrong

Discussion created by pavandsp on Mar 3, 2010
Latest reply on Mar 5, 2010 by pavandsp

 cl_platform_id* platforms = (cl_platform_id *)malloc(numPlatforms*sizeof(cl_platform_id));

numPlatforms=1;
        status = clGetPlatformIDs(numPlatforms, platforms, NULL);
        if(status != CL_SUCCESS)
        {
            printf("Error: Getting Platform Ids. (clGetPlatformsIDs)\n");
            return 1;
        }

printf("platforms ID::%d\n",platforms[0]);

I am getting weired value:numofp

platforms ID: :-1210489720

What type of ID values are expected here.I am getting -ve number.

I working on AMD CPU , Radeon HD4350 GPU ,Ubuntu 9.04 32 bit ,SDK v2.01.

Outcomes