Lines Matching defs:platforms
183 * Enables device fission for OpenCL 1.2 platforms.
233 std::vector<cl::Platform> platforms;
234 cl::Platform::get(&platforms);
236 for (auto &p : platforms) {
2473 /*! \brief Gets a list of available platforms.
2478 vector<Platform>* platforms)
2482 if( platforms == NULL ) {
2497 if (platforms) {
2498 platforms->resize(ids.size());
2502 (*platforms)[i] = Platform(ids[i]);
2527 * Throws an exception if no platforms are available
2733 vector<Platform> platforms;
2734 error = Platform::get(&platforms);
2743 // Check the platforms we found for a device of our specified type
2745 for (unsigned int i = 0; i < platforms.size(); i++) {
2753 error = platforms[i].getDevices(type, &devices);
2772 platform_id = (cl_context_properties)platforms[i]();