Lines Matching refs:device
117 Device current_device;
121 const char* deviceTypeStr = current_device.type() == Device::TYPE_CPU
122 ? ("CPU") : (current_device.type() == Device::TYPE_GPU ? current_device.hostUnifiedMemory() ? "iGPU" : "dGPU" : "unknown");
137 const Device& device = Device::getDefault();
138 if (!device.available())
139 CV_ErrorNoReturn(CV_OpenCLInitError, "OpenCL device is not available");
141 DUMP_MESSAGE_STDOUT("Current OpenCL device: ");
144 DUMP_MESSAGE_STDOUT(" Platform = "<< device.getPlatform().name());
145 DUMP_PROPERTY_XML("cv_ocl_current_platformName", device.getPlatform().name());
148 const char* deviceTypeStr = device.type() == Device::TYPE_CPU
149 ? ("CPU") : (device.type() == Device::TYPE_GPU ? device.hostUnifiedMemory() ? "iGPU" : "dGPU" : "unknown");
153 DUMP_MESSAGE_STDOUT(" Name = "<< device.name());
154 DUMP_PROPERTY_XML("cv_ocl_current_deviceName", device.name());
156 DUMP_MESSAGE_STDOUT(" Version = " << device.version());
157 DUMP_PROPERTY_XML("cv_ocl_current_deviceVersion", device.version());
159 DUMP_MESSAGE_STDOUT(" Compute units = "<< device.maxComputeUnits());
160 DUMP_PROPERTY_XML("cv_ocl_current_maxComputeUnits", device.maxComputeUnits());
162 DUMP_MESSAGE_STDOUT(" Max work group size = "<< device.maxWorkGroupSize());
163 DUMP_PROPERTY_XML("cv_ocl_current_maxWorkGroupSize", device.maxWorkGroupSize());
165 std::string localMemorySizeStr = bytesToStringRepr(device.localMemSize());
167 DUMP_PROPERTY_XML("cv_ocl_current_localMemSize", device.localMemSize());
169 std::string maxMemAllocSizeStr = bytesToStringRepr(device.maxMemAllocSize());
171 DUMP_PROPERTY_XML("cv_ocl_current_maxMemAllocSize", device.maxMemAllocSize());
173 const char* doubleSupportStr = device.doubleFPConfig() > 0 ? "Yes" : "No";
175 DUMP_PROPERTY_XML("cv_ocl_current_haveDoubleSupport", device.doubleFPConfig() > 0);
177 const char* isUnifiedMemoryStr = device.hostUnifiedMemory() ? "Yes" : "No";
179 DUMP_PROPERTY_XML("cv_ocl_current_hostUnifiedMemory", device.hostUnifiedMemory());
190 DUMP_MESSAGE_STDOUT(" Preferred vector width char = "<< device.preferredVectorWidthChar());
191 DUMP_PROPERTY_XML("cv_ocl_current_preferredVectorWidthChar", device.preferredVectorWidthChar());
193 DUMP_MESSAGE_STDOUT(" Preferred vector width short = "<< device.preferredVectorWidthShort());
194 DUMP_PROPERTY_XML("cv_ocl_current_preferredVectorWidthShort", device.preferredVectorWidthShort());
196 DUMP_MESSAGE_STDOUT(" Preferred vector width int = "<< device.preferredVectorWidthInt());
197 DUMP_PROPERTY_XML("cv_ocl_current_preferredVectorWidthInt", device.preferredVectorWidthInt());
199 DUMP_MESSAGE_STDOUT(" Preferred vector width long = "<< device.preferredVectorWidthLong());
200 DUMP_PROPERTY_XML("cv_ocl_current_preferredVectorWidthLong", device.preferredVectorWidthLong());
202 DUMP_MESSAGE_STDOUT(" Preferred vector width float = "<< device.preferredVectorWidthFloat());
203 DUMP_PROPERTY_XML("cv_ocl_current_preferredVectorWidthFloat", device.preferredVectorWidthFloat());
205 DUMP_MESSAGE_STDOUT(" Preferred vector width double = "<< device.preferredVectorWidthDouble());
206 DUMP_PROPERTY_XML("cv_ocl_current_preferredVectorWidthDouble", device.preferredVectorWidthDouble());
211 DUMP_MESSAGE_STDOUT("OpenCL device not available");