Lines Matching defs:platform
240 // Filter for a 2.0 platform and set it as the default
251 std::cout << "No OpenCL 2.0 platform found.";
257 std::cout << "Error setting default platform.";
725 #define CL_HPP_INIT_CL_EXT_FCN_PTR_PLATFORM_(platform, name) \
728 clGetExtensionFunctionAddressForPlatform(platform, #name); \
1715 static cl_uint getPlatformVersion(cl_platform_id platform)
1718 clGetPlatformInfo(platform, CL_PLATFORM_VERSION, 0, NULL, &size);
1721 clGetPlatformInfo(platform, CL_PLATFORM_VERSION, size, versionInfo.data(), &size);
1727 cl_platform_id platform;
1728 clGetDeviceInfo(device, CL_DEVICE_PLATFORM, sizeof(platform), &platform, NULL);
1729 return getPlatformVersion(platform);
1734 // The platform cannot be queried directly, so we first have to grab a
2081 /*! \brief Create the default platform from a provided platform.
2397 /*! \brief Create the default platform from a provided platform.
2427 * This simply copies the platform ID value, which is an inexpensive operation.
2429 explicit Platform(const cl_platform_id &platform, bool retainObject = false) :
2430 detail::Wrapper<cl_type>(platform, retainObject) { }
2434 * This simply copies the platform ID value, which is an inexpensive operation.
2454 * Modify the default platform to be used by
2457 * @return updated default platform.
2489 /*! \brief Gets a list of devices for this platform.
2559 cl_platform_id platform,
2652 /*! \brief Gets the first available platform.
2657 Platform * platform)
2661 if (platform) {
2662 *platform = default_platform;
2667 /*! \brief Gets the first available platform, returning it by value.
2669 * \return Returns a valid platform if one is available.
2670 * If no platform is available will return a null platform.
2734 /*! \brief Create the default context from the default device type in the default platform.
2876 // Get a valid platform ID as we cannot send in a blank one
2903 // Catch if exceptions are enabled as we don't want to exit if first platform has no devices of type
3793 /*! \brief Vector alias to simplify contruction of fine-grained SVM containers that support platform atomics.
4042 cl_platform platform = -1;
4045 platform = props[i+1];
4048 CL_HPP_INIT_CL_EXT_FCN_PTR_PLATFORM_(platform, clCreateFromD3D10BufferKHR);
4698 // Run-time decision based on the actual platform
5129 // Run-time decision based on the actual platform
7067 // Run-time decision based on the actual platform
7133 // Run-time decision based on the actual platform
7198 // Run-time decision based on the actual platform
7265 // Run-time decision based on the actual platform
7316 // Run-time decision based on the actual platform
7367 // Run-time decision based on the actual platform
8630 cl_platform_id platform = device.getInfo<CL_DEVICE_PLATFORM>();
8631 CL_HPP_INIT_CL_EXT_FCN_PTR_PLATFORM_(platform, clEnqueueAcquireD3D10ObjectsKHR);
8663 cl_platform_id platform = device.getInfo<CL_DEVICE_PLATFORM>();
8664 CL_HPP_INIT_CL_EXT_FCN_PTR_PLATFORM_(platform, clEnqueueReleaseD3D10ObjectsKHR);