Lines Matching defs:platform

282 #define __INIT_CL_EXT_FCN_PTR_PLATFORM(platform, name) \
285 clGetExtensionFunctionAddressForPlatform(platform, #name); \
1791 static cl_uint getPlatformVersion(cl_platform_id platform)
1794 clGetPlatformInfo(platform, CL_PLATFORM_VERSION, 0, NULL, &size);
1796 clGetPlatformInfo(platform, CL_PLATFORM_VERSION, size, &versionInfo[0], &size);
1802 cl_platform_id platform;
1803 clGetDeviceInfo(device, CL_DEVICE_PLATFORM, sizeof(platform), &platform, NULL);
1804 return getPlatformVersion(platform);
1810 // The platform cannot be queried directly, so we first have to grab a
2221 * This simply copies the platform ID value, which is an inexpensive operation.
2223 __CL_EXPLICIT_CONSTRUCTORS Platform(const cl_platform_id &platform) : detail::Wrapper<cl_type>(platform) { }
2227 * This simply copies the platform ID value, which is an inexpensive operation.
2257 /*! \brief Gets a list of devices for this platform.
2315 cl_platform_id platform,
2390 /*! \brief Gets the first available platform.
2395 Platform * platform)
2399 if( platform == NULL ) {
2415 *platform = ids[0];
2419 /*! \brief Gets the first available platform, returning it by value.
2426 Platform platform;
2589 // Get a valid platform ID as we cannot send in a blank one
2614 // Catch if exceptions are enabled as we don't want to exit if first platform has no devices of type
3403 cl_platform platform = -1;
3406 platform = props[i+1];
3409 __INIT_CL_EXT_FCN_PTR_PLATFORM(platform, clCreateFromD3D10BufferKHR);
3937 // Run-time decision based on the actual platform
4248 // Run-time decision based on the actual platform
6534 cl_platform_id platform = device.getInfo<CL_DEVICE_PLATFORM>();
6535 __INIT_CL_EXT_FCN_PTR_PLATFORM(platform, clEnqueueAcquireD3D10ObjectsKHR);
6567 cl_platform_id platform = device.getInfo<CL_DEVICE_PLATFORM>();
6568 __INIT_CL_EXT_FCN_PTR_PLATFORM(platform, clEnqueueReleaseD3D10ObjectsKHR);