2015-08-14 00:03:22 -0600 | answered a question | opencl embedded is someone got the answer? |
2015-08-03 00:49:48 -0600 | asked a question | opencl embedded hi guys when i run test example, I got this message: /usr/lib/libOpenCL.so: undefined symbol: gcoOS_AtomConstruct 各位: 我正在使用opencv3.0 版本,我想把它运行在飞思卡尔i.mx6上,但是我看到opencv docs 说opencv仅支持opencl1.1 full profile,但是i.mx6支持opencl1.1 ep ,请问有没有人做过在嵌入式中使用opencl? 谢谢 |
2015-07-30 23:46:30 -0600 | answered a question | OpenCV 3.0: How to determine which GPU is used for OpenCL? hi, my board have intel hd4600 and GT740m ,I use the code below if (!cv::ocl::haveOpenCL()) { cout << "OpenCL is not available..." << endl; //return; } cv::ocl::Context context; if (!context.create(cv::ocl::Device::TYPE_GPU)) { cout << "Failed creating the context..." << endl; //return; } cout << context.ndevices() << " GPU devices are detected." << endl; //This bit provides an overview of the OpenCL devices you have in your computer for (int i = 0; i < context.ndevices(); i++) { cv::ocl::Device device = context.device(i); cout << "name: " << device.name() << endl; cout << "available: " << device.available() << endl; cout << "imageSupport: " << device.imageSupport() << endl; cout << "OpenCL_C_Version: " << device.OpenCL_C_Version() << endl; cout << endl; } cv::ocl::Device(context.device(0)); //Here is where you change which GPU to use (e.g. 0 or 1) but context.create(cv::ocl::Device::TYPE_GPU) TYPE_GPU /TYPE_CPU TYPE_DGPU TYPE_IGPU TYPE_ALL cant not found GT740M , why? did you say this ? by the way I use cvtest::ocl::dumpOpenCLDevice(); get my board info like this: Intel(R) OpenCL CPU: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz (OpenCL 1.2 (Build 76413)) Current OpenCL device: Type = iGPU Name = Intel(R) HD Graphics 4600 Version = OpenCL 1.2 Compute units = 20 Max work group size = 512 Local memory size = 64 kB Max memory allocation size = 324 MB 409 kB 614 B Double support = No Host unified memory = Yes Has AMD Blas = No Has AMD Fft = No Preferred vector width char = 1 Preferred vector width short = 1 Preferred vector width int = 1 Preferred vector width long = 1 Preferred vector width float = 1 Preferred vector width double = 0 |