Lines Matching +defs:string +defs:properties
107 * The earlier versions of the header included basic vector and string
111 * We use std::array, std::vector, std::shared_ptr and std::string
116 * cl::array, cl::vector, cl::pointer and cl::string.
159 * Do not use the standard library string class. cl::string is not
223 * also the supplied vector and string classes, see following sections for
245 std::string platver = p.getInfo<CL_PLATFORM_VERSION>();
246 if (platver.find("OpenCL 2.") != std::string::npos) {
261 // Use C++11 raw string literals for kernel source code
262 std::string kernel1{R"CLC(
269 std::string kernel2{R"CLC(
295 // New simpler string interface style
296 std::vector<std::string> programStrings {kernel1, kernel2};
432 # pragma message("cl2.hpp: STRING_CLASS is deprecated. Alias cl::string instead.")
611 #include <string>
613 using string = std::string;
758 * \param errStr a descriptive string that must remain in scope until
767 /*! \brief Get error string associated with exception
769 * \return A memory pointer to the error message string.
1087 // Specialized GetInfoHelper for string params
1089 inline cl_int getInfoHelper(Func f, cl_uint name, string* param, long)
1097 // std::string has a constant data member
1173 F(cl_platform_info, CL_PLATFORM_PROFILE, string) \
1174 F(cl_platform_info, CL_PLATFORM_VERSION, string) \
1175 F(cl_platform_info, CL_PLATFORM_NAME, string) \
1176 F(cl_platform_info, CL_PLATFORM_VENDOR, string) \
1177 F(cl_platform_info, CL_PLATFORM_EXTENSIONS, string) \
1224 F(cl_device_info, CL_DEVICE_NAME, string) \
1225 F(cl_device_info, CL_DEVICE_VENDOR, string) \
1226 F(cl_device_info, CL_DRIVER_VERSION, string) \
1227 F(cl_device_info, CL_DEVICE_PROFILE, string) \
1228 F(cl_device_info, CL_DEVICE_VERSION, string) \
1229 F(cl_device_info, CL_DEVICE_EXTENSIONS, string) \
1271 F(cl_program_info, CL_PROGRAM_SOURCE, string) \
1276 F(cl_program_build_info, CL_PROGRAM_BUILD_OPTIONS, string) \
1277 F(cl_program_build_info, CL_PROGRAM_BUILD_LOG, string) \
1279 F(cl_kernel_info, CL_KERNEL_FUNCTION_NAME, string) \
1305 F(cl_device_info, CL_DEVICE_OPENCL_C_VERSION, string) \
1317 F(cl_program_info, CL_PROGRAM_KERNEL_NAMES, string) \
1321 F(cl_kernel_info, CL_KERNEL_ATTRIBUTES, string) \
1325 F(cl_kernel_arg_info, CL_KERNEL_ARG_TYPE_NAME, string) \
1326 F(cl_kernel_arg_info, CL_KERNEL_ARG_NAME, string) \
1335 F(cl_device_info, CL_DEVICE_BUILT_IN_KERNELS, string) \
1366 F(cl_device_info, CL_DEVICE_IL_VERSION_KHR, string) \
1375 F(cl_device_info, CL_DEVICE_IL_VERSION, string) \
1458 CL_HPP_DECLARE_PARAM_TRAITS_(cl_platform_info, CL_PLATFORM_ICD_SUFFIX_KHR, string)
2256 const cl_device_partition_property * properties,
2260 cl_int err = clCreateSubDevices(object_, properties, 0, NULL, &n);
2266 err = clCreateSubDevices(object_, properties, n, ids.data(), NULL);
2293 const cl_device_partition_property_ext * properties,
2299 const cl_device_partition_property_ext * /* properties */,
2308 cl_int err = pfn_clCreateSubDevicesEXT(object_, properties, 0, NULL, &n);
2314 err = pfn_clCreateSubDevicesEXT(object_, properties, n, ids.data(), NULL);
2468 cl_int getInfo(cl_platform_info name, string* param) const
2750 cl_context_properties properties[3] = {
2754 cl_context_properties *properties = nullptr;
2759 properties,
2800 cl_context_properties* properties = NULL,
2819 properties, (cl_uint) numDevices,
2831 cl_context_properties* properties = NULL,
2845 properties, 1,
2861 cl_context_properties* properties = NULL,
2875 if (properties == NULL) {
2930 properties = &prop[0];
2934 properties, type, notifyFptr, data, &error);
6162 typedef vector<string> Sources;
6169 const string& source,
6209 const string& source,
6510 const string& kernelNames,
7045 * \brief Constructs a CommandQueue based on passed properties.
7049 cl_command_queue_properties properties,
7081 CL_QUEUE_PROPERTIES, properties, 0 };
7082 if ((properties & CL_QUEUE_ON_DEVICE) == 0) {
7099 context(), device(), properties, &error);
7111 * \brief Constructs a CommandQueue based on passed properties.
7115 QueueProperties properties,
7147 CL_QUEUE_PROPERTIES, static_cast<cl_queue_properties>(properties), 0 };
7161 context(), device(), static_cast<cl_command_queue_properties>(properties), &error);
7179 cl_command_queue_properties properties = 0,
7212 CL_QUEUE_PROPERTIES, properties, 0 };
7213 if ((properties & CL_QUEUE_ON_DEVICE) == 0) {
7230 context(), devices[0](), properties, &error);
7246 QueueProperties properties,
7279 CL_QUEUE_PROPERTIES, static_cast<cl_queue_properties>(properties), 0 };
7292 context(), devices[0](), static_cast<cl_command_queue_properties>(properties), &error);
7309 cl_command_queue_properties properties = 0,
7330 CL_QUEUE_PROPERTIES, properties, 0 };
7343 context(), device(), properties, &error);
7360 QueueProperties properties,
7381 CL_QUEUE_PROPERTIES, static_cast<cl_queue_properties>(properties), 0 };
7394 context(), device(), static_cast<cl_command_queue_properties>(properties), &error);
8744 DeviceCommandQueue(DeviceQueueProperties properties, cl_int* err = NULL)
8751 CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_ON_DEVICE | static_cast<cl_command_queue_properties>(properties);
8770 DeviceQueueProperties properties = DeviceQueueProperties::None,
8776 CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_ON_DEVICE | static_cast<cl_command_queue_properties>(properties);
8795 DeviceQueueProperties properties = DeviceQueueProperties::None,
8801 CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_ON_DEVICE | static_cast<cl_command_queue_properties>(properties);
8893 cl_command_queue_properties properties =
8896 CL_QUEUE_PROPERTIES, properties,
8921 cl_command_queue_properties properties =
8924 CL_QUEUE_PROPERTIES, properties,
8949 cl_command_queue_properties properties =
8952 CL_QUEUE_PROPERTIES, properties,
9987 const string name,
10076 const string name,