Lines Matching defs:platforms
102 * std::vector<cl::Platform> platforms;
103 * cl::Platform::get(&platforms);
104 * if (platforms.size() == 0) {
110 * { CL_CONTEXT_PLATFORM, (cl_context_properties)(platforms[0])(), 0};
2361 /*! \brief Gets a list of available platforms.
2366 VECTOR_CLASS<Platform>* platforms)
2370 if( platforms == NULL ) {
2386 platforms->assign(&ids[0], &ids[n]);
2590 VECTOR_CLASS<Platform> platforms;
2591 error = Platform::get(&platforms);
2600 // Check the platforms we found for a device of our specified type
2602 for (unsigned int i = 0; i < platforms.size(); i++) {
2610 error = platforms[i].getDevices(type, &devices);
2627 platform_id = (cl_context_properties)platforms[i]();